- Timestamp:
- Aug 8, 2009, 2:19:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r7276 r7340 1465 1465 # Cleanup 1466 1466 try: 1467 os.remove(domain.get_name() + '. ' + domain.format)1467 os.remove(domain.get_name() + '.sww') 1468 1468 except: 1469 1469 pass … … 5148 5148 # Boundary conditions 5149 5149 Br = Reflective_boundary(domain2) 5150 Bf = Field_boundary(domain1.get_name() + '. ' + domain1.format, domain2)5150 Bf = Field_boundary(domain1.get_name() + '.sww', domain2) 5151 5151 domain2.set_boundary({'right':Br, 'bottom':Br, 'diagonal':Bf}) 5152 5152 domain2.check_integrity() … … 5168 5168 5169 5169 # Cleanup 5170 os.remove(domain1.get_name() + '. ' + domain1.format)5171 os.remove(domain2.get_name() + '. ' + domain2.format)5170 os.remove(domain1.get_name() + '.sww') 5171 os.remove(domain2.get_name() + '.sww') 5172 5172 5173 5173 def test_spatio_temporal_boundary_2(self): … … 5251 5251 # Read results for specific timesteps t=1 and t=2 5252 5252 from Scientific.IO.NetCDF import NetCDFFile 5253 fid = NetCDFFile(domain1.get_name() + '. ' + domain1.format)5253 fid = NetCDFFile(domain1.get_name() + '.sww') 5254 5254 5255 5255 x = fid.variables['x'][:] … … 5273 5273 # Boundary conditions 5274 5274 Br = Reflective_boundary(domain2) 5275 Bf = Field_boundary(domain1.get_name() + '. ' + domain1.format,5275 Bf = Field_boundary(domain1.get_name() + '.sww', 5276 5276 domain2, verbose=False) 5277 5277 domain2.set_boundary({'right':Br, 'bottom':Br, 'diagonal':Bf}) … … 5338 5338 5339 5339 # Cleanup 5340 os.remove(domain1.get_name() + '. ' + domain1.format)5340 os.remove(domain1.get_name() + '.sww') 5341 5341 5342 5342 def test_spatio_temporal_boundary_3(self): … … 5425 5425 # Read results for specific timesteps t=1 and t=2 5426 5426 from Scientific.IO.NetCDF import NetCDFFile 5427 fid = NetCDFFile(domain1.get_name() + '. ' + domain1.format)5427 fid = NetCDFFile(domain1.get_name() + '.sww') 5428 5428 5429 5429 x = fid.variables['x'][:] … … 5447 5447 # Boundary conditions 5448 5448 Br = Reflective_boundary(domain2) 5449 Bf = Field_boundary(domain1.get_name() + '. ' + domain1.format,5449 Bf = Field_boundary(domain1.get_name() + '.sww', 5450 5450 domain2, mean_stage=mean_stage, verbose=False) 5451 5451 … … 5516 5516 5517 5517 # Cleanup 5518 os.remove(domain1.get_name() + '. ' + domain1.format)5518 os.remove(domain1.get_name() + '.sww') 5519 5519 5520 5520 def test_spatio_temporal_boundary_outside(self): … … 5598 5598 # Read results for specific timesteps t=1 and t=2 5599 5599 from Scientific.IO.NetCDF import NetCDFFile 5600 fid = NetCDFFile(domain1.get_name() + '. ' + domain1.format)5600 fid = NetCDFFile(domain1.get_name() + '.sww') 5601 5601 5602 5602 x = fid.variables['x'][:] … … 5616 5616 # Boundary conditions 5617 5617 Br = Reflective_boundary(domain2) 5618 Bf = Field_boundary(domain1.get_name() + '. ' + domain1.format,5618 Bf = Field_boundary(domain1.get_name() + '.sww', 5619 5619 domain2, mean_stage=1, verbose=False) 5620 5620 … … 5632 5632 5633 5633 #Cleanup 5634 os.remove(domain1.get_name() + '. ' + domain1.format)5634 os.remove(domain1.get_name() + '.sww') 5635 5635 5636 5636 def test_extrema(self): … … 5730 5730 5731 5731 # Cleanup 5732 os.remove(domain.get_name() + '. ' + domain.format)5732 os.remove(domain.get_name() + '.sww') 5733 5733 5734 5734 def test_tight_slope_limiters(self): … … 5739 5739 import time, os 5740 5740 from Scientific.IO.NetCDF import NetCDFFile 5741 from data_manager import get_dataobject,extent_sww5741 from data_manager import extent_sww 5742 5742 from mesh_factory import rectangular 5743 5743 … … 5787 5787 5788 5788 domain.set_name('tight_limiters') 5789 domain.format = 'sww'5790 5789 domain.smooth = True 5791 5790 domain.reduction = mean
Note: See TracChangeset
for help on using the changeset viewer.