<div dir="ltr">Hi Dhruv,<div><br></div><div>Here is a script that will update a data with the most recent pickup file (pCheckpoint or regular Checkpoint).</div><div><a href="https://gist.github.com/rabernat/90cd307e9cdf8c774a42fd6ed2264fe9">https://gist.github.com/rabernat/90cd307e9cdf8c774a42fd6ed2264fe9</a><br></div><div><br></div><div>You run it with no arguments in the run directory.</div><div><br></div><div>To automatically restart a job, you would just add the following to the end of the jobscript:</div><div><br></div><div>mpirun mitgcmuv</div><div># mitgcm needs to actually finish before the walltime ends</div><div>./most_recent_pickup.sh</div><div>sbatch jobscript.sh</div><div><br></div><div><br></div><div>-Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 25, 2017 at 10:16 AM, Dhruv Balwada <span dir="ltr"><<a href="mailto:db194@nyu.edu" target="_blank">db194@nyu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Everyone,<br>
<br>
Does anyone here have a bash script, or a skeleton of one, that they would be willing to share, which is capable of doing restarts for MITgcm? I am specifically looking for something that works with SLURM on HPCs. Is capable of changing the nIter0 flag in the namelist files based on latest pickup file, and can resubmit the job.<br>
<br>
Thanks,<br>
Dhruv<br>
______________________________<wbr>_________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org">MITgcm-support@mitgcm.org</a><br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" rel="noreferrer" target="_blank">http://mailman.mitgcm.org/<wbr>mailman/listinfo/mitgcm-<wbr>support</a><br>
</blockquote></div><br></div>