Changeset 1862


Ignore:
Timestamp:
Oct 4, 2005, 3:52:36 PM (19 years ago)
Author:
ole
Message:

Allowed multiple evolve steps without repeating timesteps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/domain.py

    r1835 r1862  
    464464    #Main components of evolve
    465465
    466     def evolve(self, yieldstep = None, finaltime = None):
     466    def evolve(self, yieldstep = None, finaltime = None,
     467               skip_initial_step = False):
    467468        """Evolve model from time=0.0 to finaltime yielding results
    468469        every yieldstep.
     
    517518            self.goto_latest_checkpoint()
    518519
    519         yield(self.time)  #Yield initial values
     520        if skip_initial_step is False:   
     521            yield(self.time)  #Yield initial values
    520522
    521523        while True:
Note: See TracChangeset for help on using the changeset viewer.