Changeset 2551


Ignore:
Timestamp:
Mar 16, 2006, 1:44:33 PM (19 years ago)
Author:
jack
Message:

Updated domain.py in preparation for unit testing the parallel code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/domain.py

    r2516 r2551  
    787787
    788788
    789 
     789    def centroid_norm(self, quantity, normfunc):
     790        """Calculate the norm of the centroid values
     791        of a specific quantity, using normfunc.
     792
     793        normfunc should take a list to a float.
     794
     795        common normfuncs are provided in the module utilities.norms
     796        """
     797        return normfunc(self.quantities[quantity].centroid_values)
    790798
    791799
Note: See TracChangeset for help on using the changeset viewer.