Changeset 9441
- Timestamp:
- Jan 20, 2015, 5:26:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/test/test_inlet_operator.py
r9440 r9441 12 12 from anuga.shallow_water.shallow_water_domain import Domain 13 13 from anuga.abstract_2d_finite_volumes.util import file_function 14 from anuga.utilities.system_tools import get_pathname_from_package 14 15 15 16 from anuga.structures.inlet_operator import Inlet_operator … … 24 25 25 26 def tearDown(self): 26 pass 27 try: 28 os.remove('Test_Outlet_Inlet.sww') 29 except: 30 pass 31 27 32 28 33 … … 210 215 baseDir = os.getcwd() 211 216 212 try: 213 os.chdir('structures') 214 except: 215 pass 217 # try: 218 # os.chdir('structures') 219 # except: 220 # pass 221 222 path = get_pathname_from_package('anuga.structures') 223 filename1 = os.path.join(path, 'data', 'inlet_operator_test1.tms') 224 filename2 = os.path.join(path, 'data', 'inlet_operator_test2.tms') 216 225 217 226 line1 = [[95.0, 10.0], [105.0, 10.0]] 218 Q1 = file_function(filename= 'inlet_operator_test1.tms', quantities=['hydrograph'])227 Q1 = file_function(filename=filename1, quantities=['hydrograph']) 219 228 220 229 line2 = [[10.0, 90.0], [20.0, 90.0]] 221 Q2 = file_function(filename= 'inlet_operator_test2.tms', quantities=['hydrograph'])230 Q2 = file_function(filename=filename2, quantities=['hydrograph']) 222 231 223 232 os.chdir(baseDir) … … 272 281 baseDir = os.getcwd() 273 282 274 try: 275 os.chdir('structures') 276 except: 277 pass 283 path = get_pathname_from_package('anuga.structures') 284 filename1 = os.path.join(path, 'data', 'inlet_operator_test1.tms') 285 filename2 = os.path.join(path, 'data', 'inlet_operator_test2.tms') 278 286 279 287 line1 = [[95.0, 10.0], [105.0, 10.0]] 280 Q1 = file_function(filename= 'inlet_operator_test1.tms', quantities=['hydrograph'])288 Q1 = file_function(filename=filename1, quantities=['hydrograph']) 281 289 282 290 line2 = [[10.0, 90.0], [20.0, 90.0]] 283 Q2 = file_function(filename= 'inlet_operator_test2.tms', quantities=['hydrograph'])291 Q2 = file_function(filename=filename2, quantities=['hydrograph']) 284 292 285 293 os.chdir(baseDir)
Note: See TracChangeset
for help on using the changeset viewer.