Changeset 6304 for branches/numpy/anuga/culvert_flows
- Timestamp:
- Feb 10, 2009, 11:11:04 AM (16 years ago)
- Location:
- branches/numpy
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/culvert_flows/Test_Culvert_Flat_Water_Lev.py
r6150 r6304 26 26 from math import pi,pow,sqrt 27 27 28 import Numericas num28 import numpy as num 29 29 30 30 -
branches/numpy/anuga/culvert_flows/culvert_class.py
r6150 r6304 14 14 from anuga.config import minimum_allowed_height, velocity_protection 15 15 16 import Numericas num16 import numpy as num 17 17 18 18 -
branches/numpy/anuga/culvert_flows/culvert_polygons.py
r6150 r6304 6 6 from anuga.utilities.polygon import inside_polygon, polygon_area 7 7 8 import Numericas num8 import numpy as num 9 9 10 10 -
branches/numpy/anuga/culvert_flows/test_culvert_class.py
r6150 r6304 21 21 from math import pi,pow,sqrt 22 22 23 import Numericas num23 import numpy as num 24 24 25 25 … … 470 470 ref_volume = domain.get_quantity('stage').get_integral() 471 471 for t in domain.evolve(yieldstep = 1, finaltime = 25): 472 472 473 #print domain.timestepping_statistics() 473 474 new_volume = domain.get_quantity('stage').get_integral() 474 475 475 476 msg = 'Total volume has changed' 476 477 assert num.allclose(new_volume, ref_volume), msg … … 564 565 #------------------------------------------------------------- 565 566 if __name__ == "__main__": 566 #suite = unittest.makeSuite(Test_Culvert, 'test_that_culvert_rating_limits_flow_in_shallow_inlet_condition')567 567 suite = unittest.makeSuite(Test_Culvert, 'test') 568 runner = unittest.TextTestRunner() 568 runner = unittest.TextTestRunner() #verbosity=2) 569 569 runner.run(suite) 570 570
Note: See TracChangeset
for help on using the changeset viewer.