def launch(self, application): if self.inventory.ic.inventory.post_p: from CitcomSLib import readCheckpoint, postProcessing readCheckpoint(self.all_variables) # the program will finish after post_processing postProcessing(self.all_variables) self.save(1) self.endSimulation() return if self.inventory.ic.inventory.restart: from CitcomSLib import readCheckpoint readCheckpoint(self.all_variables) else: # initial conditions ic = self.inventory.ic ic.launch() self.solveVelocities() # stop the computation if only computes stokes' problem if self.inventory.stokes_flow_only: self.advectTracers() self.save(1) self.endSimulation() return
def launch(self, application): #TODO: checkpoint doesn't contain coupler information yet self.coupler.launch(self) if self.inventory.ic.inventory.restart: from CitcomSLib import readCheckpoint readCheckpoint(self.all_variables) else: # initial conditions ic = self.inventory.ic ic.launch() # insure consistent temperature fields across solvers self.coupler.exchangeTemperature() self.solveVelocities() return