Repository navigation
Conversation
The PLUMBER2 usermods set orb_iyear = 2007 without orb_iyear_align. For HIST compsets CMEPS uses orb_mode = variable_year with a default orb_iyear_align of 1850, so transient PLUMBER2 runs used orbit years of ~2150-2170. Setting orb_iyear_align = 2007 makes the orbit year equal the model year. 2000/spin-up compsets (fixed_year) are unaffected. Fixes ESCOMP#4340 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l year The NEON and NEON/FATES usermods set orb_iyear = 2018 without orb_iyear_align, so HIST (transient) NEON runs used orbit years of ~2186-2190 instead of the model year. NEON/FATES/defaults does not include NEON/defaults, so both files need the setting. 2000/spin-up compsets (fixed_year) are unaffected. Addresses ESCOMP#4340 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This seems like a simple enough PR, can we just merge it to b4b-dev, or does it need to come to master? |
It is simple, but it does change answers. And it changes answers for tests. So we can't mix it with other b4b things. But, we have established that it's OK to make tiny tags on master. So it's acceptable to go there. I actually didn't realize that our HIST compsets were advancing the orbit each year by default. But, it looks like that goes back to 2020, with CMEPS. I'm not sure if we did that previousluy with MCT or not. There can be a legit philosophy that you don't want to change the orbit for cases of a small number of years, because the advancement is so small, that it's better to fix the orbit, so you don't have yet another thing changing from underneath a simulation. Astronomers had figured you don't need to update the orbit for 50 years. But, since we have this in place, we might as well make sure it's correct. Longer term, I wonder if CMEPS shouldn't do more checking on this and use orb_year for orb_year_align in most cases. But, if someone wants to experiment with the orbit, they might do something strange on purpose and they should be allowed to do it. So I'm not sure if that would be desired or not... |
Do you want to create an issue for this, @ekluzek? |
Test resultsBranch
The NLCOMP difference shows up in Orbit year equals the model yearThe lnd log has no PLUMBER2 HIST test (
On the branch, the values change once, at the 2010 → 2011 rollover: eccentricity moves to 1.669919E-02, a change of −4.1e-7 per year. On the base, eccentricity is offset by 6.41e-5, which is 156 years at that rate and matches the expected 2007 − 1850 = 157. NEON HIST case at HARV:
At −4.1e-7 per year, 2018 should give eccentricity ≈ 1.66963E-02 (from the 2010 value), which matches the branch. Not run
Tests set up and run, and this summary written, with AI assistance (Claude Code). |
| ! ./xmlchange USER=foo | ||
| !------------------------------------------------------------------------ | ||
| orb_iyear = 2018 | ||
| ! For HIST compsets CMEPS uses orb_mode=variable_year with a default orb_iyear_align |
There was a problem hiding this comment.
It seems a bit confusing to set the orb_iyear_align to something specific for a historical compset (and differently depending on whether it is NEON or PLUMBER) since the CMEPS default would work fine (orb_mode=variable_year, orb_iyear=1850, orb_iyear_align=1850). So the orbital year would always line up with the model year. And the average year comment for PLUMBER2 sites is confusing as well in a historical compset context.
The default for a 2000 (spinup) compset is:
orb_iyear = 2000
orb_iyear_align = 2000
orb_mode = fixed_year
The only change we want to make here is to set orb_iyear = 2007 for PLUMBER2 and orb_iyear=2018 for NEON, since orb_iyear_align is ignored for orb_mode=fixed_year.
So, an alternative could be to have a conditional in cime_config/usermods_dirs/clm/PLUMBER2/defaults/shell_commands such as:
if [[ $compset =~ ^2000 ]]; then
echo " ! average year of all PLUMBER2 170 sites is 2007" >> user_nl_cpl
echo "orb_iyear = 2007" >> user_nl_cpl
fi
Similarly in cime_config/usermods_dirs/clm/NEON/defaults/shell_commands
and in cime_config/usermods_dirs/clm/NEON/FATES/defaults/shell_commands
My other comment on this PR is that I thought we decided not to put this on b4b-dev?
There was a problem hiding this comment.
Starting from your question: You are correct that we decided to put this on master as answer-changing.
Regarding your recommendations, let me see if I understood:
- Historical, i.e. transient: Use CMEPS default
- Time-slice cases: Set orb_iyear = 2007 for PLUMBER2 and orb_iyear=2018 for NEON via shell_commands to avoid ever needing to set orb_iyear_align.
If I understood correctly, then I like your suggestion.
| ! ./xmlchange USER=foo | ||
| !------------------------------------------------------------------------ | ||
| orb_iyear = 2018 | ||
| ! For HIST compsets CMEPS uses orb_mode=variable_year with a default orb_iyear_align |
There was a problem hiding this comment.
Starting from your question: You are correct that we decided to put this on master as answer-changing.
Regarding your recommendations, let me see if I understood:
- Historical, i.e. transient: Use CMEPS default
- Time-slice cases: Set orb_iyear = 2007 for PLUMBER2 and orb_iyear=2018 for NEON via shell_commands to avoid ever needing to set orb_iyear_align.
If I understood correctly, then I like your suggestion.
|
@olyson since this PR was opened on b4b-dev, let's rebase to master. It will be simplest to do that when b4b-dev syncs up with master (Erik's doing that in the next day or two). |
|
I've rerun the two PLUMBER2 tests indicated by Claude, with my suggested changes: SMS_Ly1_D_Mmpi-serial.CLM_USRDAT.IHist1PtClm60BgcRsGs.derecho_gnu.clm-default--clm-PLUMBER2-ARSLu For the historical test, results were the same as indicated by Claude, including the values for eccentricity and long. of perihelion in the historical test. The only difference is that the NLCOMP has a different failure, as expected.
For the spinup test, results were bfb as indicated by Claude. The only difference is that the NLCOMP does not have a failure, as expected, because there is no need to change orb_year_align since it is ignored. So I will move on to test the NEON and NEON-FATES cases and then commit these changes. |
|
I ran a NEON HARV transient test: and the orbital parameters agree with what Claude reported. An AD version of this: has the correct orbital settings: since orb_year_align is ignored. |
Description of changes
The PLUMBER2 usermods set
orb_iyear = 2007inuser_nl_cplwithoutorb_iyear_align. For HIST compsets CMEPS usesorb_mode = variable_yearwith a defaultorb_iyear_align = 1850, soorb_year = orb_iyear + (year - orb_iyear_align)put transient PLUMBER2 runs at orbit years of ~2150–2170 (2167 for AR-SLu). Details are in #4340.The NEON usermods have the same problem:
orb_iyear = 2018withoutorb_iyear_align, so HIST NEON runs used orbit years of ~2186–2190.This PR sets
orb_iyear_alignequal toorb_iyear(with a comment) in three usermodsuser_nl_cplfiles:PLUMBER2/defaults:orb_iyear_align = 2007NEON/defaults:orb_iyear_align = 2018NEON/FATES/defaults:orb_iyear_align = 2018. This file is needed too, becauseNEON/FATES/defaultsdoes not includeNEON/defaults.In HIST runs the orbit year now equals the model year. For 2000 / spin-up compsets
orb_mode = fixed_year, soorb_iyear_alignis ignored and the orbit stays fixed at 2007 or 2018.Status: tested; see the test results.
Specific notes
Contributors other than yourself, if any:
CTSM issues resolved or otherwise addressed, if any:
If answers are expected to change, describe (delete this line otherwise):
SMS_Ly1_D_Mmpi-serial.CLM_USRDAT.IHist1PtClm60BgcRsGs.{derecho_gnu,izumi_nag}.clm-default--clm-PLUMBER2-ARSLu. All other tests should be bit-for-bit, including the PLUMBER2I1PtAD tests and all NEON tests (all of them areI1Pt/ fixed_year compsets).Any user interface changes (namelist or namelist defaults changes)?
drv_innow hasorb_iyear_align = 2007for PLUMBER2 cases andorb_iyear_align = 2018for NEON and NEON-FATES cases (set through the usermodsuser_nl_cpl). No model defaults change.Testing planned or performed, if any:
./preview_namelistson a HIST PLUMBER2 case:drv_inhasorb_iyear_align = 2007, and the lnd logorb_yearequals the model yearSMS_Ly1_D_Mmpi-serial.CLM_USRDAT.IHist1PtClm60BgcRsGs.derecho_gnu.clm-default--clm-PLUMBER2-ARSLu: expect NLCOMP and baseline DIFFsSMS_Ly2_D_Mmpi-serial.CLM_USRDAT.I1PtClm60BgcRsGs.derecho_gnu.clm-default--clm-PLUMBER2-ARSLu--clm-ADspinup: expect b4bSMS_Ld10_D_Mmpi-serial.CLM_USRDAT.I1PtClm60BgcRsGs.derecho_gnu.clm-default--clm-NEON-HARV,...I1PtClm60FatesRsGs...clm-FatesFireLightningPopDens--clm-NEON-FATES-NIWO): expect NLCOMP diff only, b4b answersrun_towertransient at HARV) with./preview_namelists:drv_inhasorb_iyear_align = 2018, and the lnd logorb_yearequals the model yearQuestions for reviewers
b4b-devbecause it is a one-line usermods change. It is not strictly bit-for-bit: the IHist PLUMBER2 test above will change answers. Isb4b-devacceptable for this, or should it go to master?orb_mode = 'fixed_year') would match the "average year" comment. The two differ negligibly over the 1997–2018 PLUMBER2 period.🤖 Generated with Claude Code