<div dir="ltr"><div>Oh, thanks for the tip.</div><div>I can do that. Aside from the solution vector, step number, and time, are there any hidden details in TS I need to dump that would be essential for the next run?</div><div><br></div><div>Thanks in advance</div><div>Yours Sincerely</div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 9, 2020 at 9:40 PM Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com">stefano.zampini@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">You do not want to use TSTrajectory for that. The trajectory object is meant to be used for sensitivity analysis to store _all_ the intermediate time steps and the perform backward integration.<div><br></div><div>You should code a TSMonitor that dumps every n time steps and then use the last one to restart the simulation.</div><div><br></div><div><div><blockquote type="cite"><div>On May 9, 2020, at 10:30 PM, Mohammed Ashour <<a href="mailto:ashour.msc@gmail.com" target="_blank">ashour.msc@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Dear All,<div>I'm using PETSc in conjunction wit PetIGA to solve a 3D phase-field problem on HPC cluster.</div><div>Given the computational load of the code, I'm running it on 15 nodes with a multithreaded job. Now there is a wall time for the current partition set to 24 hours, afterward, the job will be killed.</div><div><br></div><div>I have been searching for the possibility of using the Trajectory to resume the run after it being terminated by reloading the dumped binary files from TSSetSaveTrajectory once again into the TS, i.e., state vector and it's time derivative, timestep and time.</div><div><br></div><div>I have tried using TSTrajectoryGet but I ended up with the following error:</div><div>[0]PETSC ERROR: Object is in wrong state<br>[0]PETSC ERROR: TS solver did not save trajectory<br></div><div><br></div><div>So, I would like to ask if in theory that would be possible? if so, how can I reload the trajectory from a previously terminated job into a new one?</div><div><br></div><div>Yours Sincerely.</div><div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><b>Mohammed Ashour, M.Sc.<br></b>PhD Scholar<br>Bauhaus-Universität Weimar<br>Institute of Structural Mechanics (ISM)<br>Marienstraße 7<br>99423 Weimar, Germany<br>Mobile: +(49) 176 58834667</div></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><b>Mohammed Ashour, M.Sc.<br></b>PhD Scholar<br>Bauhaus-Universität Weimar<br>Institute of Structural Mechanics (ISM)<br>Marienstraße 7<br>99423 Weimar, Germany<br>Mobile: +(49) 176 58834667</div></div></div>