Changeset 271


Ignore:
Timestamp:
Sep 6, 2004, 10:09:28 AM (21 years ago)
Author:
ole
Message:

Made evlove specialisation in advection module

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

Legend:

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

    r195 r271  
    3838        #Only first is implemented for advection   
    3939        self.default_order = self.order = 1 
     40
     41        #Realtime visualisation
     42        self.visualise = False
     43        self.smooth = True
    4044
    4145
     
    160164       
    161165
     166
     167    def evolve(self, yieldstep = None, finaltime = None):
     168        """Specialisation of basic evolve method from parent class
     169        """
     170       
     171        #Initialise real time viz if requested
     172        if self.visualise is True and self.time == 0.0:
     173            import realtime_visualisation as visualise
     174            visualise.create_surface(self)
     175
     176        #Call basic machinery from parent class
     177        for t in Generic_domain.evolve(self, yieldstep, finaltime):
     178            #Real time viz
     179            if self.visualise is True:
     180                visualise.update(self)
     181
     182            #Pass control on to outer loop for more specific actions   
     183            yield(t)
     184       
  • inundation/ga/storm_surge/pyvolution/shallow_water.py

    r269 r271  
    3939        #Realtime visualisation
    4040        self.visualise = False
    41 
    4241
    4342        #Stored output
     
    102101
    103102    def evolve(self, yieldstep = None, finaltime = None):
    104         #Call basic machinery from parent class
    105 
    106 
     103        """Specialisation of basic evolve method from parent class
     104        """
     105       
     106        #Initialise real time viz if requested
    107107        if self.visualise is True and self.time == 0.0:
    108108            import realtime_visualisation as visualise
     
    113113            self.store_bathymetry()       
    114114            ###self.store_conserved_quantities()       
    115                    
     115
     116        #Call basic machinery from parent class
    116117        for t in Generic_domain.evolve(self, yieldstep, finaltime):
    117118            #Real time viz
Note: See TracChangeset for help on using the changeset viewer.