Changeset 5832 for anuga_work/development/anuga_1d/test_shallow_water.py
- Timestamp:
- Oct 11, 2008, 12:38:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anuga_1d/test_shallow_water.py
r5742 r5832 5 5 6 6 7 from shallow_water_domain_new import * 8 from shallow_water_domain_new import flux_function as domain_flux_function 7 #from shallow_water_domain import * 8 #from shallow_water_domain import flux_function as domain_flux_function 9 10 from shallow_water_domain_suggestion1 import * 11 from shallow_water_domain_suggestion1 import flux_function as domain_flux_function 9 12 10 13 from Numeric import allclose, array, ones, Float, maximum, zeros … … 36 39 37 40 stage_ud, xmom_ud = local_compute_fluxes(domain) 38 41 42 domain.distribute_to_vertices_and_edges() 39 43 domain.compute_fluxes() 40 44 41 #print domain.quantities['stage'].explicit_update 42 #print domain.quantities['xmomentum'].explicit_update 43 #print stage_ud 45 print domain.quantities['stage'].explicit_update 46 print domain.quantities['xmomentum'].explicit_update 47 print stage_ud 48 print xmom_ud 44 49 45 50 assert allclose( domain.quantities['stage'].explicit_update, stage_ud ) … … 316 321 try: 317 322 #timestep = min(timestep, 0.5*domain.radii[k]/max_speed) 318 timestep = min(timestep, domain. cfl*0.5*domain.areas[k]/max_speed)323 timestep = min(timestep, domain.CFL*0.5*domain.areas[k]/max_speed) 319 324 except ZeroDivisionError: 320 325 pass
Note: See TracChangeset
for help on using the changeset viewer.