Changeset 8352


Ignore:
Timestamp:
Feb 28, 2012, 10:00:43 AM (13 years ago)
Author:
steve
Message:

Work around for running rainfall forcing and kinematic viscosity. Tracked back to negative centroid height values (which we shouldn't get!).

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  
    396396    def statistics(self, *args, **kwargs):
    397397        return self.mesh.statistics(*args, **kwargs)
     398
     399    def print_statistics(self, *args, **kwargs):
     400        print self.statistics(*args, **kwargs)
    398401       
    399402    def get_extent(self, *args, **kwargs):
     
    10211024
    10221025        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)
    10231036
    10241037    def write_boundary_statistics(self, quantities=None, tags=None):
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8308 r8352  
    662662
    663663        # 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')
    665666        H.set_boundary_values( num.where(W.boundary_values-Z.boundary_values>=0,
    666667                                         W.boundary_values-Z.boundary_values, 0.0))
Note: See TracChangeset for help on using the changeset viewer.