Esempio n. 1
0
    def checkpoint(self):
        """
    Save problem state for restart.
    """
        Problem.checkpoint()

        # Save state of this object
        raise NotImplementedError, "TimeDependent::checkpoint() not implemented."

        # Save state of children
        self.formulation.checkpoint()
        return
Esempio n. 2
0
 def checkpoint(self):
   """
   Save problem state for restart.
   """
   Problem.checkpoint()
   
   # Save state of this object
   raise NotImplementedError, "TimeDependent::checkpoint() not implemented."
 
   # Save state of children
   self.formulation.checkpoint()
   return