-
Notifications
You must be signed in to change notification settings - Fork 0
Feature request: "reference time" for output_interval in streams #1307
Comments
General consensus from telecon has been to extend existing |
I think the problem may be here in mpas_timekeeping.F:
If I understand this correctly, when an alarm is created, the previous ring time (from which the next ring time is calculated) is the current time which is the start of the current simulation (because the alarms are created on init). A solution may be to modify the call to
Naively I would think one could just pass in the |
I opened a PR to address this: #1418 |
…' into develop Previously, a stream's reference_time only applied to determining the filename breaks. Right now, output is always relative to the time of the start of the current simulation (even if it is a restart). There is no way to force, say, monthly output (i.e. on the 1st of every month) if your restart does not start on the first of a month. This commit extends reference_time to also apply to determining when individual records should be written. Thus, output stream behavior will not change after a restart. This is done by adding a new routine to mpas_timekeeping that adjusts the prevRingTime of an alarm to be an integer multiple of the stream's output_interval away from the stream's reference_time. This routine is called for each output stream created by the stream manager. Fixes Issue #1307.
Fixed by #1418 |
reference_time
only controls the naming / timebreaks offilename_interval
. Right now, output is always relative to the time of the start of the current simulation (even it it is a restart). There is no way to force, say, monthly output (i.e. on the 1st of every month) if your restart does not start on the first of a month.Alternative idea: allow restarts to 'know' the start time of the original 'cold' start simulation.
The text was updated successfully, but these errors were encountered: