Changeset 8352
- Timestamp:
- Feb 28, 2012, 10:00:43 AM (13 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/generic_domain.py
r8281 r8352 396 396 def statistics(self, *args, **kwargs): 397 397 return self.mesh.statistics(*args, **kwargs) 398 399 def print_statistics(self, *args, **kwargs): 400 print self.statistics(*args, **kwargs) 398 401 399 402 def get_extent(self, *args, **kwargs): … … 1021 1024 1022 1025 return msg 1026 1027 def print_timestepping_statistics(self, track_speeds=False, 1028 triangle_id=None): 1029 print self.timestepping_statistics(track_speeds, 1030 triangle_id) 1031 1032 1033 1034 def print_boundary_statistics(self, quantities=None, tags=None): 1035 print self.boundary_statistics(quantities, tags) 1023 1036 1024 1037 def write_boundary_statistics(self, quantities=None, tags=None): -
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r8308 r8352 662 662 663 663 # Update height values 664 H.set_values(W.centroid_values-Z.centroid_values, location='centroids') 664 H.set_values( num.where(W.centroid_values-Z.centroid_values>=0, 665 W.centroid_values-Z.centroid_values, 0.0), location='centroids') 665 666 H.set_boundary_values( num.where(W.boundary_values-Z.boundary_values>=0, 666 667 W.boundary_values-Z.boundary_values, 0.0))
Note: See TracChangeset
for help on using the changeset viewer.