Ignore:
Timestamp:
Sep 7, 2004, 5:33:10 PM (20 years ago)
Author:
ole
Message:

fiddle fiddle

File:
1 edited

Legend:

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

    r278 r280  
    110110        #Store model data, e.g. for visualisation   
    111111        if self.store is True and self.time == 0.0:
    112             self.store_bathymetry()       
    113             ###self.store_conserved_quantities()       
     112            #FIXME: Could be wrapped into local store_bathymetry and store_timestep
     113            self.intialise_storage()
     114            self.store_quantity('elevation')       
    114115
    115116        #Call basic machinery from parent class
     
    121122            #Store model data, e.g. for subsequent visualisation   
    122123            if self.store is True:
    123                 self.store_conserved_quantities()
     124                self.store_timestep() #FIXME: An idea               
     125                self.store_quantity('level')
     126
    124127
    125128            #Pass control on to outer loop for more specific actions   
     
    127130       
    128131
     132
     133    def store_quantity(self, name):
     134        """Store named quantity to file using foormat and filename
     135        """
     136
     137        Q = self.quantities[name]
     138        Q.store(self.filename, self.format)
     139       
     140        #FIXME: Use data_manager
     141        #FIXME:
     142        #  Initialisation
     143        #  Storing of vertices (static)
     144        #
     145        #  Storing of elevation (typically static, but...)
     146        #
     147        #  Storing of level (dynamic)
     148        #  Storing of time (dynamic)       
     149        #
     150        pass   
     151
     152   
    129153
    130154#Rotation of momentum vector
Note: See TracChangeset for help on using the changeset viewer.