<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">Hi Ryan,</p>
<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>
<p dir="auto">Cheers, Jody</p>
<p dir="auto">On 18 Sep 2017, at 10:04, Ryan Abernathey wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><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><p dir="auto">What do people commonly do in this situation?<br>
<br>
Thanks for the help!<br>
<br>
-Ryan<br>
_______________________________________________<br>
MITgcm-support mailing list<br>
MITgcm-support@mitgcm.org<br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a></p>
</div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>