Repository navigation
Honor the E3SM coupled model calendar during initialization and date calculations - #12
Closed
proteanplanet wants to merge 28 commits into
Closed
proteanplanet wants to merge 28 commits into
proteanplanet wants to merge 28 commits into
Conversation
- Check if log file unit is open before opening log.ww3 - Allow NDSO to be set explicitly
Corrects divide by zero error on pm-cpu intel debug
* origin/e3sm: Merge pull request #2 from erinethomas/pm_cpu_debug_fix Fix issue undefined variable issue in w3initmd.ftn Restrict UOST output to NAPOUT Add grid cell area calculation to wmscrpmd.ftn Modifications for log file consistency in E3SM Fix issue with optional arugment in W3IORS call Fix station location bug for RTD unstructured grids Add switch_E3SM Add unit number input to W3GRID Extend length of mesh filename variable Fix repeat allocation for unstructred RTD in ww3_ounf.ftn Fix RTD switch in w3gridmd.ftn Fix RTD bug in w3iopomd.ftn for unstrcutred mesh Fix RTD switch bug in ww3_ounf.ftn
Merge `e3sm` into `develop`
This PR updates the WW3 source code to include the CMake build system and CPP directives for switch options.
ADD Z0 and USTAR2 to output for E3SM Coupling
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.
|
this PR seems to duplicate code mods that have already been merged (has it been rebased recently)? Also does this PR not duplicate some of the work I put into the PR I opened 2 weeks ago to sync the calendars? |
|
also this should not be merged into develop but rather into the e3sm branch - that is probably why there are some many merge conflicts with old code that has already been merged |
|
@proteanplanet - the critical part of this PR is the new calculations in model/src/w3timemd.F90
With these two updates, I think this PR will be 100% compatible with my calendar sync efforts, as well as your E3SM efforts to update the Gregorian calendar system. |
|
closing this PR to to implement a new PR following the suggestions in the previous comment. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is to introduce compatibility with the complementary E3SM PR #8968
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.