correct mismatch of leap year#191
Conversation
|
Thanks for proposing this solution. Would it be helpful for @negin513 to try this in her cases as a sanity check? |
|
I have a case and have verified that it solves the issue, but we want to find the root cause and perhaps a better solution. |
|
The new behavior was introduced in cdeps0.12.42, I will work with @mvertens to resolve. |
|
thanks @jedwards4b , let us know when is is ready to be folded into NEON simulations by @negin513 and tagged in CTSM by @ekluzek |
|
@wwieder We will do that, I have come up with a couple of bandage type fixes but we are still looking into the root cause of the problem. Hopefully we'll have a definitive fix today. |
|
This depends on the share pr: ESCOMP/CESM_share#35 |
billsacks
left a comment
There was a problem hiding this comment.
Thanks a lot for these fixes @jedwards4b ! It looks like there was a lot of subtle, tricky stuff here; thanks a lot for working through all of it! I can't say that I have come to understand the fixes at a deep level, but from a relatively quick look this looks good to me.
|
@jedwards4b I just reread your PR description. Your summary in description of changes ("These cases are" and then the bulleted list) is really helpful and hard to deduce from a quick read of the code. What would you think about adding a comment in the code with exactly what you wrote in the PR description? |
|
@billsacks Thank you for your review - I have added further documentation to the long explanation of shr_strdata_advance. |
|
Thanks @jedwards4b ! |
uturuncoglu
left a comment
There was a problem hiding this comment.
@jedwards4b I need to test this with UFS. I'll update you about it.
uturuncoglu
left a comment
There was a problem hiding this comment.
The datm_cdeps_control_cfsr test is passed under UFS.
|
Sorry @jedwards4b we have another issue with spinup now.
I don't know what magic allows this to work in the old cdeps version, but the no_leap issues seems to complicate spinup again for these cases with the new cdeps tag (see Is this something we can work around differently so that cases where we're running with no_leap calendars just skip Feb 29 if the data exist? |
|
@wwieder I'll try to spin up a LAJA case. I thought that I had covered all of the edge cases, but maybe not. |
|
The LAJA case that failed is here: The older case that Will mentioned in comment is overwritten (since I am rerunning these simulations) and is waiting in the queue. Same issue also happened for: |
|
Just to clarify that the change to cdeps was the cos zenith angle fix that
needed to be accompanied by a change to the logic of when new time bounds
are read in.
On Thu, Sep 29, 2022 at 6:34 PM Negin Sobhani ***@***.***> wrote:
The LAJA case that failed is here:
/glade/scratch/negins/neon_ctsm_v2_rerun_2/tools/site_and_regional/LAJA.ad
—
Reply to this email directly, view it on GitHub
<#191 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4XCE3UNE3Z63FQBEOJSDLWAYYSPANCNFSM6AAAAAAQTCNLSM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Dr. Mariana Vertenstein
CESM Software Engineering Group Head
National Center for Atmospheric Research
Boulder, Colorado
Office 303-497-1349
Email: ***@***.***
|
|
@wwieder @negin513 I think that the spin up of cases where we have less than full years is flawed. Setting the start date to the beginning of the partial 2018 data doesn't allow the model to use that partial year of data. The RUN_STARTDATE should not be modified. The model cycles over the complete years in the inputdata and will not use 2018 and 2022 in this case. So changing RUN_STARTDATE doesn't really modify anything. In this case the model cycles over the data from 2019-2021. 2018 and 2022 data are not used. That said, this covered an edge case that was handled in the model before I added the additional edge cases and messed it up. I have a fix and will open a new PR with the change. |
Description of changes
Handle a number of special cases in matching inputdata dates to model dates.
These cases are:
Specific notes
Contributors other than yourself, if any: @mvertens
CDEPS Issues Fixed (include github issue #): #190
Are there dependencies on other component PRs (if so list): ESCOMP/CESM_share#35
Are changes expected to change answers (bfb, different to roundoff, more substantial): bfb
Any User Interface Changes (namelist or namelist defaults changes):
Testing performed (e.g. aux_cdeps, CESM prealpha, etc): Neon spinup of over 100 years
Hashes used for testing:
sM ./ccs_config
modified sandbox, ccs_config_cesm0.0.44 (branch main) --> ccs_config_cesm0.0.38
./cime
clean sandbox, on cime6.0.45
s ./components/cdeps
clean sandbox, 0f3f707 (branch leap_year_corrections) --> cdeps0.12.63
./components/cdeps/fox
clean sandbox, on 4.1.2.1
./components/cdeps/share/genf90
clean sandbox, on genf90_200608
./components/cism
clean sandbox, on cismwrap_2_1_95
./components/cism/source_cism
clean sandbox, on cism_main_2.01.011
M ./components/cmeps
modified sandbox, on cmeps0.13.71
./components/cpl7
clean sandbox, on cpl7.0.14
./components/mizuRoute
clean sandbox, on 34723c2e4df7caa16812770f8d53ebc83fa22360
./components/mosart
clean sandbox, on mosart1_0_45
./components/rtm
clean sandbox, on rtm1_0_78
e-o ./doc/doc-builder
-, not checked out --> v1.0.8
./libraries/mct
clean sandbox, on MCT_2.11.0
./libraries/parallelio
clean sandbox, on pio2_5_7
s ./share
clean sandbox, bfa2b5d0a9de06153f2ac94a95818568a1f5cf11 (branch shr_cal_leapyear) --> share1.0.12
./src/fates
clean sandbox, on sci.1.58.1_api.24.1.0