Ignore:
Timestamp:
Nov 24, 2004, 12:25:21 PM (20 years ago)
Author:
ole
Message:

Added functionality for storing momentum (x and y) as well as water levels in sww files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/shallow_water.py

    r614 r620  
    5252        self.reduction = min  #Looks better near steep slopes
    5353       
    54 
     54        self.quantities_to_be_stored = ['level']
     55
     56       
    5557        #Establish shortcuts to relevant quantities (for efficiency)
    5658        #self.w = self.quantities['level']
     
    172174            #Store model data, e.g. for subsequent visualisation   
    173175            if self.store is True:
    174                 self.store_timestep('level')
     176                #self.store_timestep(['level', 'xmomentum', 'ymomentum'])
     177                self.store_timestep(self.quantities_to_be_stored)
     178               
    175179                #FIXME: Could maybe be taken from specified list
    176180                #of 'store every step' quantities       
    177 
    178181
    179182            #Pass control on to outer loop for more specific actions   
Note: See TracChangeset for help on using the changeset viewer.