Changeset 8100
- Timestamp:
- Dec 14, 2010, 1:56:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/shallow_water/shallow_water_domain.py
r8073 r8100 271 271 272 272 273 def set_store_vertices_uniquely(self, flag , reduction=None):273 def set_store_vertices_uniquely(self, flag=True, reduction=None): 274 274 """Decide whether vertex values should be stored uniquely as 275 275 computed in the model (True) or whether they should be reduced to one … … 280 280 # "continuous stage surface" 281 281 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 282 297 283 298 # Reduction operation for get_vertex_values
Note: See TracChangeset
for help on using the changeset viewer.