Source code for PyFoam.Applications.CommonRestart

"""
Class that implements the common functionality for restarting cases
"""

[docs]class CommonRestart(object): """ The class that restarts the case """
[docs] def addOptions(self): self.ensureGeneralOptions() self.generalOpts.add_option("--restart", action="store_true", default=False, dest="restart", help="Restart the simulation from the last time-step")