Changeset 990


Ignore:
Timestamp:
Mar 2, 2005, 5:53:41 PM (20 years ago)
Author:
steve
Message:

Put back to old version, will get unit test working before committing again

File:
1 edited

Legend:

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

    r989 r990  
    625625      //Update timestep
    626626      //timestep = min(timestep, domain.radii[k]/max_speed)
     627      //FIXME: SR Add parameter for CFL condition
    627628      if (max_speed > epsilon) {
    628         timestep = min(timestep, 0.5*((double *) radii -> data)[k]/max_speed);
     629        timestep = min(timestep, ((double *) radii -> data)[k]/max_speed);
    629630      }   
    630631    } // end for i
     
    780781    for (i=0; i<3; i++) {
    781782      n = ((long*) neighbours -> data)[k3+i];
    782       ((double*) hvbar -> data)[k3+i] = ((double*) hc -> data)[k]; 
     783      // FIXME SR This line should be included to ensure conservation,
     784      // but the unit tests give errors at the moment!
     785      //((double*) hvbar -> data)[k3+i] = ((double*) hc -> data)[k]; 
    783786      if (n >= 0) {
    784787        hn = ((double*) hc -> data)[n]; //Neighbour's centroid value
Note: See TracChangeset for help on using the changeset viewer.