[MITgcm-support] how to run for exactly 1 month with calendarDumps
Patrick Heimbach
heimbach at mit.edu
Tue Sep 19 10:39:12 EDT 2017
It shouldn't be too much of an effort to connect calendarDumps with the pickup I/O (in the same way it is connected with diagnostics). I.e., the read_pickup, write_pickup query whether something like calendarPickups is set to true, and if it is, it will find the "closest" timestep number corresponding to correct startOfMonth and perform dump/restart (that's essentially how it's done with diagnostics).
ONE problem is whether this option is wanted.
It would make at least two people on the 14th floor very happy...
Cheers
p.
> On Sep 18, 2017, at 12:35 PM, Ryan Abernathey <ryan.abernathey at gmail.com> wrote:
>
> 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 data 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.
>
> 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.
> Cheers, Jody
>
> On 18 Sep 2017, at 10:04, Ryan Abernathey wrote:
>
>
> Hi,
>
> I am new to doing "realistic" simulations with the cal package activated. I
> would like to run for one calendar month and then dump diagnostics and
> pickup files. I will then restart from pickup and run the next month, etc.,
> for many years.
>
> I am using the following data.cal
>
> &CAL_NML
> TheCalendar='gregorian',
> startDate_1=20100101,
> startDate_2=000000,
> calendarDumps = .TRUE.,
> &
>
> I understand that calendarDumps causes chkPtFreq, pChkPtFreq, taveFreq,
> etc. to automatically conform their output to one calendar month if I set
> chkptFreq = 259200.0.
>
> My question is: how to I make the model stop running after exactly one
> month, given that the length of a month is variable?
>
> The two options I am familiar with for setting the length of the run
> are nTimeSteps or endTime. I don't want to manually specify the endTime
> after each run, and anyway, that would be hard because I would need to
> account for the variable month length. Alternatively, I could just always
> run for 31 days, but this would waste some computer time for 30 and 28-day
> months. (A small amount, but the model is quite expensive already.)
>
>
>
>
>
> What do people commonly do in this situation?
>
> Thanks for the help!
>
> -Ryan
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
--------------------------------------------------------
Patrick Heimbach, Ph.D. | http://heimbach.wordpress.com
| The University of Texas at Austin, ICES/JSG/UTIG |
201 East 24th Street, POB 4.232 | Austin, TX 78712 | USA
FON: +1-512-232-7694 | Email: heimbach at utexas.edu
| Massachusetts Institute of Technology, EAPS/PAOC |
77 Massachusetts Ave, 54-1420 | Cambridge MA 02139 | USA
FON: +1-617-253-5259 | Email: heimbach at mit.edu
--------------------------------------------------------
More information about the MITgcm-support
mailing list