forked from E3SM-Project/E3SM
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR E3SM-Project#1418 'matthewhoffman/framework/output_record_re…
…ference_time' 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 E3SM-Project#1307.
- Loading branch information
Showing
2 changed files
with
96 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters