Changeset 280


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

fiddle fiddle

Location:
inundation/ga/storm_surge/pyvolution
Files:
2 edited

Legend:

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

    r276 r280  
    766766
    767767
    768 
    769 #Mappings from format to reader (FIXME: Soon Obsoleted)
    770 def get_variable_reader(format):
    771    
    772     func = eval('%s_variable_reader' %format)
    773     return func
    774 
    775 
    776 def get_variable_writer(format):
    777    
    778     func = eval('%s_variable_writer' %format)
    779     return func   
    780 
    781 def get_constant_reader(format):
    782    
    783     func = eval('%s_constant_reader' %format)
    784     return func
    785 
    786 def get_constant_writer(format):
    787    
    788     func = eval('%s_constant_writer' %format)
    789     return func   
    790 
  • 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.