Skip to content

Conversation

@ekluzek
Copy link
Collaborator

@ekluzek ekluzek commented Jul 25, 2025

Description of changes

Implement namelist options for soil moisture activation factor used in MEGAN isoprene emissions.

Adds a GitHub issue template for things related to documentation.

Fixes a self-test.

Adds a broadcast of the namelist value for a few mapalgo items after reading it in so it is consistent across all ranks when not using the default value. Also update the mapalgo options list to be consistent with the NUOPC options, the MCT list was in place before this.

Update submodules so we are using the latest in cesm development for cesm3_0_alpha07b.

Harden github actions to improve security (use a hash, rather than a tag, reduce permissions to readonly when possible)

Update SpinupStability scripts for h0->h0a transition (backwards compatible).
Update run_clm_historical script for nuopc, extension through 2023, produces restart files for 1979 and 2000, and h0->h0a transition (backwards compatible).

Remove flexCN_FUN_BNF test and testmods as redundant

Fix string replacements in lreprstruct test:
The previous logic caused problems if "GRAIN" appeared in two (or more) strings, where one was a substring of the other. For example, in LREPRSTRUCT_Ly1_P128x1.f10_f10_mg37.I1850Clm50BgcCrop.derecho_gnu.clm-ciso--clm-cropMonthOutput, before this replacement, one line contained 'GRAINN_TO_FOOD' and a later line contained (among other things) "'GRAINN_TO_FOOD_PERHARV', 'GRAINN_TO_FOOD_ANN'". This was problematic because the first replacement of GRAINN_TO_FOOD incorrectly led to replacements in the later strings as well.

Two new CTSM megan_opts namelist items:
megan_use_gamma_sm
megan_min_gamma_sm

Fix the list of options for the mapalgo namelist items:
Remove nnonj, nnoni, spval, copy
Add: consf, consd, none

List of PR's:

Specific notes

Contributors other than yourself, if any: @samrabin @billsacks @olyson @slevis-lmwg

CTSM Issues Fixed (include github issue #):
Fixes #3316
Work on #3016
Fixes #2533
Fixes #3345
Fixes #1912
Fixes #3303
Fixes #2983
Fixes #3316
Fixes #3313

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: regular aux_clm on Derecho and Izumi

briandobbins and others added 30 commits May 8, 2024 19:44
… it in so it is consistent across all ranks when not using the default value ('nn').
… it in so it is consistent across all ranks when not using the default value ('nn').
…s/CTSM into fix_urbantvmapalgo_broadcast

 Conflicts:
	.git-blame-ignore-revs
	doc/ChangeLog
	doc/ChangeSum
…rrently used at ultra-high res (largely to get around an issue we had with online regridding here, which can be another approach taken later)
…s/CTSM into fix_urbantvmapalgo_broadcast

 Conflicts:
	bld/namelist_files/namelist_definition_ctsm.xml
	modified:   bld/namelist_files/namelist_definition_drv_flds.xml
	modified:   src/biogeochem/VOCEmissionMod.F90
        modified:   bld/namelist_files/namelist_definition_drv_flds.xml
        modified:   bld/CLMBuildNamelist.pm
        modified:   bld/namelist_files/namelist_definition_ctsm.xml
        modified:   src/biogeochem/VOCEmissionMod.F90
        modified:   src/main/clm_instMod.F90
Remove flexCN_FUN_BNF test and testmods as redundant.
ekluzek and others added 13 commits July 23, 2025 18:29
…the code so they can be used, also do some veritical alignment for the mapalgo options which should help readability for this text for users
…roadcast

Adds a broadcast of the namelist value 'urbantvmapalgo'
 Conflicts:
	bld/unit_testers/build-namelist_test.pl
Isoprene soil moisture options for MEGAN
Add time dimension to *1d_wt* fields that change in transient simulations

Add namelist variable vars_1d_w_time that defaults true in transient runs and false in non-transient.

User may change it to true in non-transient, but they will get an error if they change to false in transient.
@ekluzek ekluzek added this to the cesm3_0_beta07 milestone Jul 25, 2025
@ekluzek ekluzek self-assigned this Jul 25, 2025
@ekluzek ekluzek added priority: high High priority to fix/merge soon, e.g., because it is a problem in important configurations bfb bit-for-bit labels Jul 25, 2025
@ekluzek ekluzek marked this pull request as ready for review July 25, 2025 06:42
@ekluzek
Copy link
Collaborator Author

ekluzek commented Jul 25, 2025

Testing is as expected on Izumi and Derecho. There are 53 tests on Derecho and 5 on Izumi with a so called "answer change", because the field lists differ, but this is expected.

@slevis-lmwg slevis-lmwg self-requested a review July 25, 2025 21:46
Copy link
Contributor

@slevis-lmwg slevis-lmwg left a comment

Choose a reason for hiding this comment

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

I browsed quickly and approved, as each contributing PR should have gone through the review/approval process already.

Thank you @ekluzek!

@ekluzek
Copy link
Collaborator Author

ekluzek commented Jul 28, 2025

I still get #3205 when running the python tests, even with completely removing my ctsm_pylib environment and reinstalling using py_lib_create. I'll look this over with people at the standup to see if we can figure it out.

@ekluzek ekluzek merged commit d6f950a into ESCOMP:master Jul 28, 2025
15 checks passed
@ekluzek ekluzek deleted the merge-b4bdev-20250725 branch July 28, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment