Hi Fabian,<div>Thanks.</div><div>For other people that are interested in achieving this. One would need have both STEP and <a href="https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/MOTION/MD.html#MAX_STEPS">MAX_STEPS</a><br><br></div><div>Where not stating the step would only allow the simulation to run for 3 steps.</div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, 8 March 2021 at 18:33:42 UTC fa...@gmail.com wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hi,</div><div><br></div><div>the MAX_STEPS keyword in the MD section is what you are looking for:</div><div><a href="https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/MOTION/MD.html#MAX_STEPS" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en-GB&q=https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/MOTION/MD.html%23MAX_STEPS&source=gmail&ust=1615373518079000&usg=AFQjCNFhRr7f5L95ImQJaZjRI_tUD0GJmA">https://manual.cp2k.org/cp2k-8_1-branch/CP2K_INPUT/MOTION/MD.html#MAX_STEPS</a></div><div><br></div><div>Cheers,</div><div>Fabian<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Monday, 8 March 2021 at 18:38:29 UTC+1 <a href data-email-masked rel="nofollow">am...@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<div>Say if I have a QM/MM input file that asks to run 200000 steps. The cluster killed the job in 180000 steps due to timeout.</div><div>When I resume the calculation with </div><div><br></div><div>cp2k.psmp -i prod.restart<br></div><div><br></div><div>The restart file knows that it is currently in 180000 steps and it needs to run 200000 steps but won't stop when 200000 steps are reached. I imagine that it would run a further of 200000 steps. </div><div>I wonder if it is better that the restart function will take into account the current step and only run the number of steps that it needs to run? Thank you.</div></blockquote></div></blockquote></div>