<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:sans-serif"><div style="white-space:normal"><p dir="auto">I’ve not done this at all, but it seems a script to manually specify startTime and endTime wouldn’t be too hard. I parse the <code>data</code> file all the time when I want to do automatic runs like this. I use python, but I’m sure clever people can use bash and awk or sed.</p></div></div></div></blockquote><div>That script would have to understand calendars. endTime is specified in seconds. So the script would have to know which month it is running and how many days that month has. Yes, this is do-able, but, wherever dates are involved, I prefer not to get my hands dirty, especially if there is an established solution already. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">Cheers, Jody</p><div><div class="h5">
<p dir="auto">On 18 Sep 2017, at 10:04, Ryan Abernathey wrote:</p>
<p dir="auto"></p></div></div></div>
<div style="white-space:normal"><div><div class="h5"><blockquote style="border-left:2px solid #5855d5;color:#5855d5;margin:0 0 5px;padding-left:5px"><p dir="auto">Hi,<br>
<br>
I am new to doing "realistic" simulations with the cal package activated. I<br>
would like to run for one calendar month and then dump diagnostics and<br>
pickup files. I will then restart from pickup and run the next month, etc.,<br>
for many years.<br>
<br>
I am using the following data.cal<br>
<br>
&CAL_NML<br>
TheCalendar='gregorian',<br>
startDate_1=20100101,<br>
startDate_2=000000,<br>
calendarDumps = .TRUE.,<br>
&<br>
<br>
I understand that calendarDumps causes chkPtFreq, pChkPtFreq, taveFreq,<br>
etc. to automatically conform their output to one calendar month if I set<br>
chkptFreq = 259200.0.<br>
<br>
My question is: how to I make the model stop running after exactly one<br>
month, given that the length of a month is variable?<br>
<br>
The two options I am familiar with for setting the length of the run<br>
are nTimeSteps or endTime. I don't want to manually specify the endTime<br>
after each run, and anyway, that would be hard because I would need to<br>
account for the variable month length. Alternatively, I could just always<br>
run for 31 days, but this would waste some computer time for 30 and 28-day<br>
months. (A small amount, but the model is quite expensive already.)</p>
</blockquote><br><br><br></div></div><p dir="auto"></p><div><div class="h5">What do people commonly do in this situation?<br>
<br>
Thanks for the help!<br>
<br>
-Ryan<br></div></div><span class="">
______________________________<wbr>_________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" target="_blank">http://mailman.mitgcm.org/<wbr>mailman/listinfo/mitgcm-<wbr>support</a></span><p></p>
</div>
<div style="white-space:normal">
</div>
</div>
</div>
<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>
<br></blockquote></div><br></div></div>