Ignore:
Timestamp:
Sep 5, 2008, 9:16:45 PM (15 years ago)
Author:
steve
Message:

Updated timestepping

File:
1 edited

Legend:

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

    r5738 r5741  
    55
    66
    7 from shallow_water_domain import *
    8 from shallow_water_domain import flux_function as domain_flux_function
     7from shallow_water_domain_new import *
     8from shallow_water_domain_new import flux_function as domain_flux_function
    99
    1010from Numeric import allclose, array, ones, Float, maximum, zeros
     
    4141        #print domain.quantities['stage'].explicit_update
    4242        #print domain.quantities['xmomentum'].explicit_update
    43         #print stage_ud
     43        print stage_ud
    4444
    4545        assert allclose( domain.quantities['stage'].explicit_update, stage_ud )
     
    133133
    134134        domain.default_order = 1
    135         domain.default_time_order = 1
     135        domain.set_timestepping_method('euler')
     136       
    136137        yieldstep=1.0
    137138        finaltime=1.0
     
    167168
    168169        domain.default_order = 2
    169         domain.default_time_order = 1
     170        domain.set_timestepping_method('rk2')
    170171        yieldstep=1.0
    171172        finaltime=1.0
     
    191192
    192193        domain.default_order = 2
    193         domain.default_time_order = 2
     194        domain.set_timestepping_method('rk3')
     195
    194196        yieldstep=1.0
    195197        finaltime=1.0
Note: See TracChangeset for help on using the changeset viewer.