Changeset 3642 for anuga_core/source/anuga/shallow_water/data_manager.py
- Timestamp:
- Sep 21, 2006, 11:30:59 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r3563 r3642 67 67 from anuga.coordinate_transforms.geo_reference import Geo_reference 68 68 from anuga.geospatial_data.geospatial_data import Geospatial_data 69 from anuga.config import minimum_s ww_depth69 from anuga.config import minimum_storable_height as default_minimum_storable_height 70 70 71 71 def make_filename(s): … … 252 252 Data_format.__init__(self, domain, 'sww', mode) 253 253 254 if hasattr(domain, 'minimum_s ww_depth'):255 self.minimum_s ww_depth = domain.minimum_sww_depth254 if hasattr(domain, 'minimum_storable_height'): 255 self.minimum_storable_height = domain.minimum_storable_height 256 256 else: 257 self.minimum_s ww_depth = minimum_sww_depth257 self.minimum_storable_height = default_minimum_storable_height 258 258 259 259 # NetCDF file definition … … 380 380 from os import stat 381 381 382 minimum_sww_depth = 0.001383 #minimum_sww_depth = 0.0 #FIXME pass in or read from domain384 382 from Numeric import choose 385 383 … … 482 480 #print z[:] 483 481 #print A-z[:] 484 A = choose( A-z[:] >= self.minimum_sww_depth,485 482 A = choose(A-z[:] >= self.minimum_storable_height, 483 (z[:], A)) 486 484 stage[i,:] = A.astype(self.precision) 487 485 elif name == 'xmomentum':
Note: See TracChangeset
for help on using the changeset viewer.