Changeset 3741
- Timestamp:
- Oct 11, 2006, 11:57:10 AM (18 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/pmesh/test_mesh_interface.py
r3734 r3741 6 6 from anuga.pmesh.mesh import importMeshFromFile 7 7 from anuga.pmesh.mesh_interface import create_mesh_from_regions 8 from anuga.pmesh.mesh_interface import _create_mesh_from_regions 8 9 # This not work on DSG's desktop 10 #from anuga.pmesh.mesh_interface import _create_mesh_from_regions 11 #But this does. maybe due to me using python 2.3? 12 from mesh_interface import _create_mesh_from_regions 9 13 from load_mesh.loadASCII import * 10 14 from anuga.utilities.polygon import is_inside_polygon -
anuga_core/source/anuga/shallow_water/data_manager.py
r3720 r3741 4232 4232 msg = "Bad data in the mux file." 4233 4233 if points_num < 0: 4234 f.close() 4234 4235 raise ANUGAError, msg 4235 4236 if time_step_count < 0: 4237 f.close() 4236 4238 raise ANUGAError, msg 4237 4239 if time_step < 0: 4240 f.close() 4238 4241 raise ANUGAError, msg 4239 4242 -
anuga_core/source/anuga/shallow_water/test_data_manager.py
r3720 r3741 11 11 from struct import pack 12 12 13 from anuga.shallow_water.data_manager import *14 13 from anuga.shallow_water import * 14 from data_manager import * 15 15 from anuga.config import epsilon 16 from anuga.utilities.anuga_exceptions import ANUGAError 17 from anuga.utilities.numerical_tools import ensure_numeric 16 18 17 19 # This is needed to run the tests of local functions … … 5006 5008 quantities_init[1].append(n ) # UA 5007 5009 quantities_init[2].append(e) # VA 5008 #print "lonlatdeps",lonlatdeps 5009 base_name = str(id(self))5010 #print "lonlatdeps",lonlatdeps 5011 _,base_name = tempfile.mkstemp("") 5010 5012 files = [] 5011 5013 for i,q in enumerate(quantities): … … 5046 5048 time_step_count = 45 5047 5049 time_step = -7 5048 base_name = str(id(self))5050 _,base_name = tempfile.mkstemp("") 5049 5051 files = [] 5050 5052 quantities = ['HA','UA','VA'] … … 5071 5073 raise msg 5072 5074 sww_file = base_name + '.sww' 5073 5074 5075 self.delete_mux(files) 5075 5076 … … 5193 5194 #------------------------------------------------------------- 5194 5195 if __name__ == "__main__": 5195 #suite = unittest.makeSuite(Test_Data_Manager,'test_sww_minimum_storable_height') 5196 #suite = unittest.makeSuite(Test_Data_Manager,'test_urs2sww_test_fail') 5197 #suite = unittest.makeSuite(Test_Data_Manager,'test_urs2sww') 5196 5198 suite = unittest.makeSuite(Test_Data_Manager,'test') 5197 5199 runner = unittest.TextTestRunner()
Note: See TracChangeset
for help on using the changeset viewer.