Ignore:
Timestamp:
Aug 6, 2008, 2:41:57 PM (15 years ago)
Author:
ole
Message:

Added comments and documentation about CFL condition.

File:
1 edited

Legend:

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

    r5442 r5618  
    17591759        if (max_speed > epsilon) {
    17601760       
    1761           // Original CFL calculation
     1761          // Apply CFL condition for triangles joining this edge (triangle k and triangle n)
     1762         
     1763          // CFL for triangle k
    17621764          timestep = min(timestep, radii[k]/max_speed);
     1765         
    17631766          if (n>=0)
     1767            // Apply CFL condition for neigbour n (which is on the ith edge of triangle k)
    17641768            timestep = min(timestep, radii[n]/max_speed);
    17651769         
Note: See TracChangeset for help on using the changeset viewer.