- Timestamp:
- Jul 18, 2008, 2:49:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_data_manager.py
r5529 r5531 76 76 77 77 78 domain.distribute_to_vertices_and_edges() 78 domain.distribute_to_vertices_and_edges() 79 79 self.initial_stage = copy.copy(domain.quantities['stage'].vertex_values) 80 80 … … 580 580 for t in self.domain.evolve(yieldstep = 1.0, finaltime = 4.0): 581 581 582 582 #########self.domain.write_time(track_speeds=True) 583 583 stage = self.domain.quantities['stage'].vertex_values 584 584 … … 6902 6902 6903 6903 def test_file_boundary_stsIII(self): 6904 """Read correct points from order file6904 """Read correct points from ordering file 6905 6905 """ 6906 6906 from anuga.shallow_water import Domain … … 8490 8490 def test_get_mesh_and_quantities_from_sww_file(self): 8491 8491 """test_get_mesh_and_quantities_from_sww_file(self): 8492 """ 8493 8494 8495 8496 8492 """ 8493 8494 # Generate a test sww file with non trivial georeference 8495 8496 import time, os 8497 8497 from Numeric import array, zeros, allclose, Float, concatenate 8498 8498 from Scientific.IO.NetCDF import NetCDFFile … … 8524 8524 8525 8525 8526 8526 # Read it 8527 8527 8528 8528 # Get mesh and quantities from sww file … … 8541 8541 8542 8542 # Check that time has been recovered 8543 8543 assert allclose(time, range(t_end+1)) 8544 8544 8545 8545 # Check that quantities have been recovered 8546 8546 # (sww files use single precision) 8547 8547 z=domain.get_quantity('elevation').get_values(location='unique vertices') 8548 8548 assert allclose(quantities['elevation'], z) 8549 8549 8550 8550 for q in ['stage', 'xmomentum', 'ymomentum']:
Note: See TracChangeset
for help on using the changeset viewer.