Skip to content

Honor coupled calendars during initialization and date arithmetic - #14

Open
erinethomas wants to merge 1 commit into
E3SM-Project:e3smfrom
erinethomas:fix-calendar
Open

erinethomas wants to merge 1 commit into
E3SM-Project:e3smfrom
erinethomas:fix-calendar

Conversation

@erinethomas

Copy link
Copy Markdown

This PR is to introduce compatibility with the complementary E3SM PR E3SM-Project/E3SM#8968

Propagate Gregorian-aware orbital context and scheduled solar timestamps through both drivers and affected components.

Derive orbital-year defaults from compset epochs, preserve explicit overrides, and require settings for ambiguous epochs.
Preserve the fixed-year day-80.5 equinox reference with Gregorian year lengths.
Enable equation-of-time corrections by default without changing model time or seasonal orbital phase.
Record and validate the EOT convention in driver restarts.
Update Icepack and WW3 revisions for their coupled interfaces.
Document configuration, scientific impacts, and intended CMIP compatibility.
In WW3, this adds an optional coupled-calendar argument to initialization, applies the calendar after reading grid configuration and before initialization time arithmetic, maps NO_LEAP to 365_day and GREGORIAN to standard, and uses proleptic Gregorian date conversion for the standard calendar. Focused checks of the full time module passed for 108 date round trips and nine leap-year boundaries using infrastructure stubs. Full coupled-model validation remains pending.

Accept an optional host calendar override immediately after reading the model grid and before initialization date arithmetic. Map NO_LEAP to 365_day and GREGORIAN to standard, rejecting unknown coupled calendars.

Pull Request Summary

Description

Issue(s) addressed

Commit Message

Check list

Testing

  • How were these changes tested?
  • Are the changes covered by regression tests? (If not, why? Do new tests need to be added?)
  • Have the matrix regression tests been run (if yes, please note HPC and compiler)?
  • Please provide the summary output of matrix.comp (matrix.Diff.txt, matrixCompFull.txt and matrixCompSummary.txt):
  • Please indicate the expected changes in the regression test output (Note the known list of non-identical tests).
  • Please provide the summary output of matrix.comp (matrix.Diff.txt, matrixCompFull.txt and matrixCompSummary.txt):

Accept an optional host calendar override immediately after reading the
model grid and before initialization date arithmetic. Map NO_LEAP to
365_day and GREGORIAN to standard, rejecting unknown coupled calendars.

Use proleptic Gregorian conversion for standard dates, including dates
before the historical Gregorian transition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants