Ignore:
Timestamp:
Apr 14, 2007, 4:05:58 PM (17 years ago)
Author:
ole
Message:

Prepared tests for making new slope limiters default. Still a few unprepared tests remaining and
one example in test_data_manager where small timesteps are generated.

File:
1 edited

Legend:

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

    r4348 r4376  
    3434        #Create shallow water domain
    3535        domain = Domain(points, vertices, boundary)
    36         domain.default_order=2
     36        domain.default_order = 2
    3737
    3838
     
    6363
    6464        domain.set_quantity('stage', stage)
     65
     66
     67        domain.distribute_to_vertices_and_edges()               
    6568        self.initial_stage = copy.copy(domain.quantities['stage'].vertex_values)
    6669
    67         domain.distribute_to_vertices_and_edges()
    6870
    6971
     
    427429
    428430    def test_sync(self):
    429         """Test info stored at each timestep is as expected (incl initial condition)
     431        """test_sync - Test info stored at each timestep is as expected (incl initial condition)
    430432        """
    431433
     
    440442        self.domain.beta_h = 0
    441443
     444
    442445        #Evolution
    443446        for t in self.domain.evolve(yieldstep = 1.0, finaltime = 4.0):
     447            #########self.domain.write_time(track_speeds=True)
    444448            stage = self.domain.quantities['stage'].vertex_values
    445449
     
    59135917    #suite = unittest.makeSuite(Test_Data_Manager,'cache_test_URS_points_needed_and_urs_ungridded2sww')
    59145918    #suite = unittest.makeSuite(Test_Data_Manager,'test_urs2sww_momentum')
    5915     suite = unittest.makeSuite(Test_Data_Manager,'test')
    5916     runner = unittest.TextTestRunner()
     5919    suite = unittest.makeSuite(Test_Data_Manager,'test_sync')
     5920    runner = unittest.TextTestRunner(verbosity=2)
    59175921    runner.run(suite)
    59185922
Note: See TracChangeset for help on using the changeset viewer.