- Timestamp:
- Mar 22, 2013, 9:29:16 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_work/development/gareth/experimental/balanced_dev/swb2_domain_ext.c
r8772 r8774 312 312 memset((char*) ymom_explicit_update, 0, number_of_elements * sizeof (double)); 313 313 314 local_timestep=timestep; 314 315 315 316 // Compute minimum bed edge value on each triangle … … 444 445 445 446 // CFL for triangle k 446 timestep = min(timestep, radii[k] / max_speed);447 local_timestep = min(local_timestep, radii[k] / max_speed); 447 448 448 449 if (n >= 0) { 449 450 // Apply CFL condition for neigbour n (which is on the ith edge of triangle k) 450 timestep = min(timestep, radii[n] / max_speed);451 local_timestep = min(local_timestep, radii[n] / max_speed); 451 452 } 452 453 … … 473 474 if(edgeflux_store[3*(3*k+useint)]< 0.){ 474 475 //outgoing_mass_edges+=1.0; 475 outgoing_mass_edges+=(edgeflux_store[3*(3*k+useint)]* timestep);476 outgoing_mass_edges+=(edgeflux_store[3*(3*k+useint)]*local_timestep); 476 477 } 477 478 } … … 563 564 } // end cell k 564 565 565 //if(call%2==0) timestep=local_timestep; 566 566 if(call%2==0) timestep=local_timestep; 567 567 // Look for 'dry' edges, and set momentum (& component of momentum_update) 568 568 // in that direction to zero. If we don't do this, then it is possible for
Note: See TracChangeset
for help on using the changeset viewer.