<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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 class=""><br class=""></div><div class="">You should code a TSMonitor that dumps every n time steps and then use the last one to restart the simulation.</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On May 9, 2020, at 10:30 PM, Mohammed Ashour <<a href="mailto:ashour.msc@gmail.com" class="">ashour.msc@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear All,<div class="">I'm using PETSc in conjunction wit PetIGA to solve a 3D phase-field problem on HPC cluster.</div><div class="">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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">I have tried using TSTrajectoryGet but I ended up with the following error:</div><div class="">[0]PETSC ERROR: Object is in wrong state<br class="">[0]PETSC ERROR: TS solver did not save trajectory<br class=""></div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Yours Sincerely.</div><div class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><b class="">Mohammed Ashour, M.Sc.<br class=""></b>PhD Scholar<br class="">Bauhaus-Universität Weimar<br class="">Institute of Structural Mechanics (ISM)<br class="">Marienstraße 7<br class="">99423 Weimar, Germany<br class="">Mobile: +(49) 176 58834667</div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>