Changeset 8100


Ignore:
Timestamp:
Dec 14, 2010, 1:56:54 PM (13 years ago)
Author:
steve
Message:

Small change to storing vertices in sww files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r8073 r8100  
    271271
    272272
    273     def set_store_vertices_uniquely(self, flag, reduction=None):
     273    def set_store_vertices_uniquely(self, flag=True, reduction=None):
    274274        """Decide whether vertex values should be stored uniquely as
    275275        computed in the model (True) or whether they should be reduced to one
     
    280280        # "continuous stage surface"
    281281        self.smooth = not flag
     282
     283        # Reduction operation for get_vertex_values
     284        if reduction is None:
     285            self.reduction = mean
     286            #self.reduction = min  #Looks better near steep slopes
     287
     288    def set_store_vertices_smoothly(self, flag=True, reduction=None):
     289        """Decide whether vertex values should be stored smoothly (one value per vertex)
     290        or uniquely as
     291        computed in the model (False)
     292        """
     293
     294        # FIXME (Ole): how about using the word "continuous vertex values" or
     295        # "continuous stage surface"
     296        self.smooth = flag
    282297
    283298        # Reduction operation for get_vertex_values
Note: See TracChangeset for help on using the changeset viewer.