Ignore:
Timestamp:
Sep 7, 2007, 10:43:46 PM (16 years ago)
Author:
steve
Message:

Working on 2nd order time stepping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_system.py

    r4561 r4712  
    4747        domain.set_name(boundary_name)                 
    4848        domain.set_datadir(dir)         
    49         domain.starttime = boundary_starttime
     49        domain.set_starttime(boundary_starttime)
    5050       
    5151        # Setup initial conditions
     
    7171       
    7272        """
     73     
    7374        boundary_starttime = 500
    7475        boundary_filename = self.create_sww_boundary(boundary_starttime)
     
    9596        # Setup boundary conditions
    9697        domain.set_boundary({'exterior': Bf})
    97         for t in domain.evolve(yieldstep = 5, finaltime = 10.0):
     98
     99       
     100        for t in domain.evolve(yieldstep = 5.0, finaltime = 10.0):
    98101            pass
    99             #domain.write_time()
     102            #print domain.write_time()
    100103            #print "domain.time", domain.time
    101104
     
    117120        Test that starttime can be set in the middle of a boundary condition
    118121        """
     122       
    119123        boundary_starttime = 500
    120124        boundary_filename = self.create_sww_boundary(boundary_starttime)
     
    134138        domain.set_datadir(dir)
    135139        new_starttime = 510.
    136         domain.starttime = new_starttime
     140        domain.set_starttime(new_starttime)
    137141
    138142        # Setup initial conditions
     
    146150        for t in domain.evolve(yieldstep = 5, finaltime = 9.0):
    147151            pass
    148             #domain.write_time()
     152            #print domain.write_time()
    149153            #print "domain.time", domain.time
    150154
Note: See TracChangeset for help on using the changeset viewer.