def run(self, engine, is_first=True): self.init_only = True from petram.solver.solver_model import SolverInstance instance = SolverInstance(self, engine) phys_range = self.get_phys_range() inits = self.get_init_setting() dprint1("Setting variable :" + self.name(), inits) engine.run_apply_init(phys_range, inits=inits) phys_target = self.get_phys() engine.save_sol_to_file(phys_target, skip_mesh=False, mesh_only=False, save_parmesh=self.save_parmesh)
def __init__(self, gui, engine): SolverInstance.__init__(self, gui, engine) self.assembled = False self.linearsolver = None