Skip to content

b4b-dev: Move nml parameters (changes paramfile)#3391

Merged
slevis-lmwg merged 14 commits intoESCOMP:b4b-devfrom
swensosc:move_nml_parameters
Mar 12, 2026
Merged

b4b-dev: Move nml parameters (changes paramfile)#3391
slevis-lmwg merged 14 commits intoESCOMP:b4b-devfrom
swensosc:move_nml_parameters

Conversation

@swensosc
Copy link
Contributor

@swensosc swensosc commented Aug 7, 2025

Description of changes

move namelist parameters to parameter file. parameters moved are: baseflow_scalar, precip_repartition_nonglc_all_rain_t, precip_repartition_nonglc_all_snow_t, precip_repartition_glc_all_rain_t, precip_repartition_glc_all_snow_t

Specific notes

Contributors other than yourself, if any:

CTSM Issues Fixed (include github issue #):

Are answers expected to change (and if so in what way)? No

Any User Interface Changes (namelist or namelist defaults changes)? Yes

Does this create a need to change or add documentation? Did you do so? No No

Testing performed, if any:

@slevis-lmwg working locally in /glade/work/slevis/git/b4b-dev

@ekluzek
Copy link
Collaborator

ekluzek commented Aug 7, 2025

I did a quick skim over this and this looks good to me. I'll rebase this PR to go to b4b-dev, which should be fine without any trouble. Sometimes you have to rebase the branch when that's done, but I don't expect that now.

The one thing noticeably missing is an updated parameter file with the parameters moved to it.

@ekluzek ekluzek added next this should get some attention in the next week or two. Normally each Thursday SE meeting. bfb bit-for-bit usability Improve or clarify user-facing options labels Aug 7, 2025
@ekluzek ekluzek added this to the ctsm6.0.0 (code freeze) milestone Aug 7, 2025
@ekluzek
Copy link
Collaborator

ekluzek commented Aug 7, 2025

Adding next to talk about who will shepherd this in.

@ekluzek ekluzek changed the base branch from master to b4b-dev August 7, 2025 15:14
@swensosc
Copy link
Contributor Author

swensosc commented Aug 7, 2025

parameter file location: /fs/cgd/csm/inputdata/lnd/clm2/paramdata/ctsm5.3.041.Nfix_params.v13.c250221_upplim250_add_nml.nc

@ekluzek ekluzek removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Sep 12, 2025
@ekluzek
Copy link
Collaborator

ekluzek commented Sep 12, 2025

We talked about this and will bring it in on b4b-dev.

Copy link
Collaborator

@ekluzek ekluzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had looked at this when this first came in and thought I had already approved. So approving now.

I skimmed through again and didn't notice anything that warrants attention.

@ekluzek ekluzek removed their assignment Dec 11, 2025
@slevis-lmwg slevis-lmwg moved this from Todo to In Progress in LMWG: Sprint Planning Board Dec 12, 2025
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Dec 15, 2025

Paused testing because need to bring the new params (see post above) to the latest paramfiles:

OK ./build-namelist_test.pl
./run_sys_tests -s aux_clm -c ctsm5.4.001 --skip-generate
./run_sys_tests -s aux_clm -c ctsm5.4.001 --skip-generate --skip-git-status

@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Dec 15, 2025

Before I add the new params to paramfiles:

  • list the latest paramfiles on master and b4b-dev
    master currently ctsm5.4.004 has the latest and Erik tells me that we do not expect other paramfile updates:
<paramfile phys="clm6_0" >lnd/clm2/paramdata/ctsm60_params.c251211.nc</paramfile>
<paramfile phys="clm5_0" >lnd/clm2/paramdata/clm50_params.c250311.nc</paramfile>
<paramfile phys="clm4_5" >lnd/clm2/paramdata/clm45_params.c250311.nc</paramfile>

ctsm60 and clm50 are the paramfiles to update, not clm45.

Consider the new tool in #3622 if needed.

@slevis-lmwg slevis-lmwg added the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Dec 15, 2025
@slevis-lmwg slevis-lmwg moved this from In Progress to Stalled in LMWG: Sprint Planning Board Dec 15, 2025
@slevis-lmwg slevis-lmwg removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Dec 18, 2025
@slevis-lmwg slevis-lmwg moved this from Stalled to In Progress in LMWG: Sprint Planning Board Dec 18, 2025
@slevis-lmwg slevis-lmwg changed the title Move nml parameters b4b-dev: Move nml parameters Dec 22, 2025
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Dec 23, 2025

I generated two new paramfiles with the updates:

/glade/campaign/cesm/cesmdata/inputdata/lnd/clm2/paramdata/clm50_params.c251222.nc
/glade/campaign/cesm/cesmdata/inputdata/lnd/clm2/paramdata/ctsm60_params.c251222.nc
  • Repeat with current paramfile
  • After testing, ./rimport and relink.py

@github-project-automation github-project-automation bot moved this from In progress - b4b-dev to In progress - master in CTSM: Upcoming tags Mar 5, 2026
@ekluzek
Copy link
Collaborator

ekluzek commented Mar 5, 2026

Ran testing on Derecho last night. Things worked as expected with the exception of the following:

ERS_Ld3.f10_f10_mg37.I2000Clm60Bgc.derecho_intel.clm-ciso_cwd_hr        (NLCOMP RUN)
ERS_Ld3.f10_f10_mg37.I2000Clm60Bgc.derecho_intel.clm-ciso_cwd_hr--clm-matrixcnOn        (NLCOMP RUN)
ERS_Ld3.f10_f10_mg37.I2000Clm60BgcCrujra.derecho_intel.clm-ciso_cwd_hr  (NLCOMP RUN)
FUNITCTSM_P1x1.f10_f10_mg37.I2000Clm50Sp.derecho_intel  (NLCOMP RUN)
SMS_D.f10_f10_mg37.I2000Clm60BgcCrop.derecho_nvhpc.clm-crop     (NLCOMP RUN)            EXPECTED (RUN)
SMS_D_Mmpi-serial_Ld5.5x5_amazon.I2000Clm60Bgc.derecho_gnu.clm-HillslopeC       (NLCOMP RUN)
SMS_Lm1.f10_f10_mg37.I1850Clm60Bgc.derecho_intel.clm-clm60_monthly_matrixcn_soilCN30    (NLCOMP RUN)
SMS_Lm1.f10_f10_mg37.IHistClm60Bgc.derecho_intel.clm-leafcn_t_evolving  (NLCOMP RUN)

I think this is mostly because of tests that have custom parameter files.

@swensosc
Copy link
Contributor Author

swensosc commented Mar 5, 2026 via email

@ekluzek ekluzek moved this from In progress - master to In progress - b4b-dev in CTSM: Upcoming tags Mar 9, 2026
@ekluzek ekluzek self-assigned this Mar 10, 2026
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Mar 10, 2026

I have picked this up again hoping to merge this week if possible.

I made changes to the constructor as I understood them from the conversation above.
I submitted these tests from the short list of failures that I saw above:

FAIL SMS_Lm1.f10_f10_mg37.IHistClm60Bgc.derecho_intel.clm-leafcn_t_evolving.C.20260310_154544_rur8jp DIFF
FAIL ERS_Ld3.f10_f10_mg37.I2000Clm60Bgc.derecho_intel.clm-ciso_cwd_hr.C.20260310_161644_a4bfhi DIFF
FAIL FUNITCTSM_P1x1.f10_f10_mg37.I2000Clm50Sp.derecho_intel.C.20260310_162208_8z7rve RUN
FAIL SMS_D_Mmpi-serial_Ld5.5x5_amazon.I2000Clm60Bgc.derecho_gnu.clm-HillslopeC.C.20260310_165833_cbz4lj DIFF
FAIL SMS_Lm1.f10_f10_mg37.I1850Clm60Bgc.derecho_intel.clm-clm60_monthly_matrixcn_soilCN30.C.20260310_170039_nb7q0s DIFF

comparing to baseline ctsm5.4.021.

FUNIT still fails at RUN.
The others now fail with DIFFs from the baseline, unlike the 4th in the list when I tested it earlier: #3391 (comment)

@ekluzek I will push my mods to get your feedback.

UPDATE 2026/3/11 after the mods discussed below:

PASS FUNITCTSM_P1x1.f10_f10_mg37.I2000Clm50Sp.derecho_intel.C.20260311_174252_r947vm
PASS SMS_D_Mmpi-serial_Ld5.5x5_amazon.I2000Clm60Bgc.derecho_gnu.clm-HillslopeC.C.20260311_173515_tmxfun

So I will push my mods and submit aux_clm.

This is in atm2lndType.F90 and FUNITCTSM test still fails at RUN.
ekluzek added a commit to ekluzek/CTSM that referenced this pull request Mar 11, 2026
…he namelist move for ESCOMP#3391 the move_nml_parameters branch
@slevis-lmwg
Copy link
Contributor

slevis-lmwg commented Mar 12, 2026

./run_sys_tests -s aux_clm -c ctsm5.4.021 --skip-generate

  • derecho
  • izumi

@slevis-lmwg
Copy link
Contributor

@ekluzek please look if you want to go over my latest changes. Tests are passing now, including FUNIT, so I submitted aux_clm.

I'm not confident about one variable naming choice: I kept Sean's _celsius suffix in subr. ReadParams and removed it elsewhere. Would you rather I kept it throughout?

@slevis-lmwg slevis-lmwg merged commit c730759 into ESCOMP:b4b-dev Mar 12, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in LMWG: Sprint Planning Board Mar 12, 2026
@github-project-automation github-project-automation bot moved this from In progress - b4b-dev to Done (non release/external) in CTSM: Upcoming tags Mar 12, 2026
@slevis-lmwg slevis-lmwg deleted the move_nml_parameters branch March 12, 2026 16:09
@ekluzek ekluzek removed their assignment Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bfb bit-for-bit blocker another issue/PR depends on this one usability Improve or clarify user-facing options

Projects

Status: Done (non release/external)
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants