I would like to change the restart file when using the studymanager (the xml file is set for a restart). I speculate it can be done with a python script. However, I would like to know which variable has to be changed / function has to be called ?
Some of the modules already imported in my script:
Code: Select all
from cs_package import package
from model.XMLengine import Case
from model.XMLinitialize import XMLinit
from model.SolutionDomainModel import SolutionDomainModel
from model.TimeStepModel import TimeStepModel
from model.NumericalParamGlobalModel import NumericalParamGlobalModel
from model.NumericalParamEquationModel import NumericalParamEquationModel
from model.NotebookModel import NotebookModel
from studymanager.cs_studymanager_parser import Parser
Code: Select all
from model.StartRestartModel import setRestartPath
...
restart = StartRestartModel(case)
restart.setRestartPath("/folder/smgr/case/RESU/simulation/checkpoint")
Best wishes,
Cédric