Ignore:
Timestamp:
Nov 17, 2007, 6:15:27 AM (17 years ago)
Author:
ole
Message:

Ooops forgot to recompute balanced vertex depths in previous version. It looks good now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/shallow_water_ext.c

    r4825 r4826  
    716716            vc = 0.0;
    717717          }
     718         
    718719          // Vertex momenta guaranteed to be consistent with depth guaranteeing
    719720          // controlled speed
     721          hv[i] = wv[k3+i] - zv[k3+i]; // Recompute (balanced) vertex depth
    720722          xmomv[k3+i] = uc*hv[i];
    721723          ymomv[k3+i] = vc*hv[i];       
     
    724726          // xmomc and ymomc (shallow) and momentum
    725727          // from extrapolator xmomv and ymomv (deep).
    726           // FIXME (Ole): Is this really needed?
     728          // FIXME (Ole): Is this really needed? Could we use the above
     729          // instead?
    727730         
    728731          xmomv[k3+i] = (1-alpha)*xmomc[k] + alpha*xmomv[k3+i];
     
    735738
    736739       
    737     //if (0) {  // FIXME(Ole): Disabled while testing balancing of velocities above
    738     if (tight_slope_limiters == 1) {                   
     740    if (0) {  // FIXME(Ole): Disabled while testing balancing of velocities above
     741      //if (tight_slope_limiters == 1) {               
    739742   
    740743      // Ensure that the Froude number is kept realistic at vertices
Note: See TracChangeset for help on using the changeset viewer.