Changeset 992


Ignore:
Timestamp:
Mar 3, 2005, 2:04:24 PM (20 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/shallow_water_ext.c

    r991 r992  
    227227    //If hmin > dz/2 then alpha = 1 and the bed will have no effect
    228228    //If hmin < 0 then alpha = 0 reverting to constant height above bed.
    229    
    230     if (dz > 0.0)
    231       alpha = max( min( 2*hmin/dz, 1.0), 0.0 );
     229   
     230
     231    if (dz > 0.0)
     232      //if (hmin<0.0)
     233      //        alpha = 0.0;
     234      //else
     235      //  alpha = max( min( hc[k]/dz, 1.0), 0.0 );
     236        alpha = max( min( 2.0*hmin/dz, 1.0), 0.0 );
     237   
    232238    else
    233239      alpha = 1.0;  //Flat bed
Note: See TracChangeset for help on using the changeset viewer.