Ignore:
Timestamp:
Mar 22, 2013, 9:29:16 AM (12 years ago)
Author:
davies
Message:

Updated gd_experimental

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_work/development/gareth/experimental/balanced_dev/swb2_domain_ext.c

    r8772 r8774  
    312312    memset((char*) ymom_explicit_update, 0, number_of_elements * sizeof (double));
    313313
     314    local_timestep=timestep;
    314315
    315316    // Compute minimum bed edge value on each triangle
     
    444445
    445446                    // CFL for triangle k
    446                     timestep = min(timestep, radii[k] / max_speed);
     447                    local_timestep = min(local_timestep, radii[k] / max_speed);
    447448
    448449                    if (n >= 0) {
    449450                        // 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);
    451452                    }
    452453
     
    473474                        if(edgeflux_store[3*(3*k+useint)]< 0.){
    474475                            //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);
    476477                        }
    477478                    }
     
    563564    }  // end cell k
    564565
    565     //if(call%2==0) timestep=local_timestep;
    566 
     566    if(call%2==0) timestep=local_timestep;
    567567    // Look for 'dry' edges, and set momentum (& component of momentum_update)
    568568    // 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.