Ignore:
Timestamp:
Oct 11, 2008, 12:38:18 PM (16 years ago)
Author:
steve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/anuga_1d/test_shallow_water.py

    r5742 r5832  
    55
    66
    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
     10from shallow_water_domain_suggestion1 import *
     11from shallow_water_domain_suggestion1 import flux_function as domain_flux_function
    912
    1013from Numeric import allclose, array, ones, Float, maximum, zeros
     
    3639
    3740        stage_ud, xmom_ud = local_compute_fluxes(domain)
    38        
     41
     42        domain.distribute_to_vertices_and_edges()
    3943        domain.compute_fluxes()
    4044
    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
    4449
    4550        assert allclose( domain.quantities['stage'].explicit_update, stage_ud )
     
    316321            try:
    317322                #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)
    319324            except ZeroDivisionError:
    320325                pass
Note: See TracChangeset for help on using the changeset viewer.