Skip to content

Commit b1e8e03

Browse files
authored
Merge pull request #3638 from ESCOMP/alpha-ctsm5.4.CMIP7
ctsm5.4.000: Merge alpha-ctsm5.4.CMIP7 to master
2 parents fde1fc6 + 13e09b3 commit b1e8e03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1067
-385
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
6868
[submodule "ccs_config"]
6969
path = ccs_config
7070
url = https://github.com/ESMCI/ccs_config_cesm.git
71-
fxtag = ccs_config_cesm1.0.61
71+
fxtag = ccs_config_cesm1.0.61_add_domain_ne3np4.pg2_1
7272
fxrequired = ToplevelRequired
7373
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
7474
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ Code conventions: https://github.com/ESCOMP/ctsm/wiki/CTSM-coding-guidelines
4545

4646
#### Code of Conduct:
4747

48-
See the `CODE_OF_CONDUCT.md` file for expectations of how to work in the community.
48+
See https://github.com/ESCOMP/CTSM?tab=coc-ov-file for expectations of how to work in the community.

README

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$CTSMROOT/README 09/05/2024
1+
$CTSMROOT/README 11/24/2025
22

3-
Community Terrestrial Systems Model (CTSM) science version 5.3 series -- source code, tools,
3+
Community Terrestrial Systems Model (CTSM) science version 5.4 series -- source code, tools,
44
offline-build and test scripts. This gives you everything you need
55
to run CTSM with CESM with the CMEPS driver and CDEPS data models to provide CRUJRA or GSWP3 forcing data (some older options also available) in
66
place of a modeled atmosphere.
@@ -15,6 +15,10 @@ For lists of current bugs (issues) and current development see the CTSM GitHub p
1515

1616
https://github.com/ESCOMP/CTSM
1717

18+
For Code of Conduct (how to work with each other on the CTSM project):
19+
20+
https://github.com/ESCOMP/CTSM?tab=coc-ov-file
21+
1822
INFORMATION ON THE CMEPS DRIVER:
1923

2024
https://escomp.github.io/CMEPS
@@ -76,8 +80,7 @@ README ------------------- This file
7680
README.md ---------------- File that displays on github under https::/github.com/ESCOMP/CTSM.git
7781
README.rst --------------- File that displays under the project in github
7882
README_GITFLEXIMOD.rst --- Information on how to work with git-fleximod for CTSM
79-
WhatsNewInCTSM5.3.md ----- Overview document of the changes between ctsm5.2.0 and ctsm5.3.0
80-
CODE_OF_CONDUCT.md ------- Code of Conduct for how to work with each other on the CTSM project
83+
WhatsNewInCTSM5.4.md ----- Overview document of the changes between ctsm5.3 and ctsm5.4
8184
Copyright ---------------- CESM Copyright file
8285
doc/UpdateChangeLog.pl --- Script to add documentation on a tag to the
8386
ChangeLog/ChangeSum files
@@ -168,7 +171,7 @@ src/unit_test_stubs Unit test stubs that replicate CTSM code simpler
168171

169172
cd $CIMEROOT/scripts
170173
./create_newcase # get help on how to run create_newcase
171-
./create_newcase --case testI --res f19_g17_gl4 --compset I2000Clm60BgcCrop
174+
./create_newcase --case testI --res f09_t232 --compset I2000Clm60BgcCrop
172175
# create new "I" case for default machine at 1.9x2.5_gx1v7
173176
# "I2000Clm60BgcCrop" case is clm6_0 physics, CDEPS, and inactive ice/ocn/glc
174177
# and MOSART for river-routing

WhatsNewInCTSM5.4.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# What's new in CTSM 5.4 (tag `ctsm5.4.0xx`)
2+
3+
# Purpose and description of changes since CTSM 5.3 (tag `ctsm5.3.021`)
4+
5+
## New features
6+
7+
* New surface datasets from CMIP7 data including PFT and urban distributions, land use transitions, population density, and atmospheric C isotopes. These data are only available through the historical record (1850-2023), and
8+
* are not available for future periods (presently known as SSP),
9+
* for future periods and N deposition we continue to use CMIP6 data from CESM2.
10+
* Option to use CRUJRA2024 atmospheric driver data with clm6 and clm5 physics options ([PR #2956](https://github.com/ESCOMP/ctsm/pull/2956)), this is the default data-atmosphere (DATM) for clm6. This CRUJRA dataset covers 1901-2023, whereas previous GSWP3 only covers 1901-2014.
11+
* Capability to run single-point PLUMBER tower sites, similar to the NEON tower capability ([issue #1487](https://github.com/ESCOMP/CTSM/issues/1487)). Initial conditions are not provided for PLUMBER sites.
12+
* New CLM\_CMIP\_ERA flag in env\_run.xml. Valid options are cmip7 and cmip6. Defaults to cmip7 except in compsets containing SSP for which it defaults to cmip6 because there are no future-period datasets yet available for CMIP7.
13+
* Automatic, more flexible use of anomaly forcings for CMIP6 ISSP cases, which also use the cmip6 CLM\_CMIP\_ERA flag: [Documentation](https://escomp.github.io/CTSM/users_guide/running-special-cases/Running-with-anomaly-forcing.html)
14+
15+
* Unsupported script that checks for spinup equilibrium in `tools/contrib/` for spectral element grids ([PR #2991](https://github.com/ESCOMP/ctsm/pull/2991)).
16+
* New paramfile tools that allow users to query and modify CLM parameter files ([documentation](https://escomp.github.io/CTSM/users_guide/using-clm-tools/paramfile-tools.html))
17+
* Optional time-evolving \`leafcn\_target\`. More under “Additional detail” below.
18+
* New vertical movement scheme for soil nitrate, which is off by default (PR [#2992](https://github.com/ESCOMP/CTSM/pull/2992)).
19+
* Documentation improvements and new URL: https://escomp.github.io/CTSM/index.html.
20+
* FATES:
21+
* Grazing ([sci.1.81.0\_api.37.1.0](https://github.com/NGEET/fates/releases/tag/sci.1.81.0_api.37.1.0)).
22+
* Johnson and Berry 2021 electron transport model ([sci.1.85.0\_api.40.0.0](https://github.com/NGEET/fates/releases/tag/sci.1.85.0_api.40.0.0)).
23+
* Managed Fire ([sci.1.87.0\_api.41.0.0](https://github.com/NGEET/fates/releases/tag/sci.1.87.0_api.41.0.0)).
24+
25+
## Answer changes
26+
27+
Changes to defaults for \`clm6\` physics:
28+
29+
* New CMIP7 surface and landuse timeseries datasets (see in Additional Details below).
30+
* New namelist variables \`snow\_thermal\_cond\_glc\_method\` and \`snow\_thermal\_cond\_lake\_method\` ([PR #3072](https://github.com/ESCOMP/CTSM/pull/3072)). Snow thermal conductivity uses Jordan1991 over glaciers to reduce Greenland melt rates by default and Sturm over land and lake land units.
31+
* Bytnerowicz is now the default nfix\_method for clm6 (https://github.com/ESCOMP/ctsm/pull/2972) which revises the temperature function for nitrogen fixation, replacing the Houlton *et al.* function.
32+
* Updates to MEGAN for BVOCs (https://github.com/ESCOMP/CTSM/pull/3065 https://github.com/ESCOMP/CTSM/pull/3309). Removes dependence on soil moisture from clm6 physics.
33+
* New model parameter values that were calibrated to improve carbon cycle representation with CRUJRA.
34+
* New model parameter values that were calibrated to improve the fire model. Now using li2024 fire code.
35+
* New initial conditions files for f09 ("1-degree" 1850, 2000), f19 (“2-degree” 1850), and ne30 (1850, 1979, 2000\) resolutions.
36+
* Change default for glcmec\_downscale\_longwave to FALSE for clm6 physics as turning off the LW downscaling improves the melt and runoff biases.
37+
* See “Changes to FATES and the FATES parameter file” below.
38+
* Namelist defaults change so that
39+
* use\_c13/use\_c14 are on only for HistClm60Bgc compsets with CRUJRA2024 or CAM7 forcing; examples of when use\_c13/use\_c14 are now off include SSP and single-point compsets, as well as cases using older forcings, such as CAM6, GSWP3v1, Qian, and CRUv7
40+
* when use\_c13 or use\_c14 is on, turn on the corresponding time series file
41+
* irrigation is on for transient cases (1850-2000, 1850-2100, but not for clm4\_5).
42+
43+
Changes for all physics versions:
44+
45+
* Parameters updated: Added MIMICS parameter \`mimics\_fi\` (fraction of litter inputs that bypass litter pools, directly contributing to SOM) and updated other MIMICS parameters (https://github.com/ESCOMP/CTSM/pull/2365) to remove NPP control on turnover, fix density dependent control on turnover, add litterfall fluxes that bypass litter pools and contribute directly to soil organic matter.
46+
* FATES parameter file updated: ([PR \#2965](https://github.com/ESCOMP/CTSM/pull/2965), [PR \#2904](https://github.com/ESCOMP/CTSM/pull/2904), [PR \#1344](https://github.com/NGEET/fates/pull/1344), [PR \#3087](https://github.com/ESCOMP/CTSM/pull/3087)). See “FATES parameter file” section below for details.
47+
* New surface datasets and landuse timeseries files (see “surface datasets” section below).
48+
49+
## Heads up
50+
51+
* History tapes now split into two files from hX to hXi and hXa, where X is the tape number (e.g. h0i/h0a) and where "i" stands for history file containing instantaneous fields, while "a" stands for history file containing non-instantaneous fields. Details in the “history files” section below and in the PRs https://github.com/ESCOMP/ctsm/pull/2445 https://github.com/ESCOMP/MOSART/pull/117 https://github.com/ESCOMP/RTM/pull/61 and the corresponding issues.
52+
* Adding time to 1d weighting fields in transient simulations PR https://github.com/ESCOMP/CTSM/pull/3328
53+
* Regarding CMIP7 vs. CMIP6 inputs:
54+
* We supply only CMIP7 C13/C14 isotope datasets, so these get used regardless of CLM\_CMIP\_ERA setting.
55+
* We supply only CMIP7 population density with clm6 physics in non-SSP cases, because the fire model is calibrated to that; conversely, we supply only CMIP6 population density for pre-clm6 physics and for SSP cases.
56+
* We supply only CESM2 nitrogen deposition (ndep), so this gets used regardless of CLM\_CMIP\_ERA setting.
57+
* For DATM we supply only CMIP6 aerosols.
58+
* For DATM we supply only CMIP6 CO2.
59+
* Issue with DOUT\_S\_SAVE\_INTERIM\_REST [https://github.com/ESCOMP/CTSM/issues/3351](https://github.com/ESCOMP/CTSM/issues/3351) was fixed.
60+
* As of ctsm5.3.040, the new ctsm\_pylib conda environment is incompatible with our tools from before ctsm5.3.040 and vice versa. More under “Additional detail” below.
61+
62+
# Additional detail
63+
64+
## Changes related to history files
65+
66+
(Note 1: The same information in this section applies to MOSART and RTM.
67+
Note 2: The gist of the information in this section also appears in the [CTSM User’s Guide](https://escomp.github.io/CTSM/users_guide/setting-up-and-running-a-case/customizing-the-clm-namelist.html#various-ways-to-change-history-output-averaging-flags)).
68+
69+
Following ctsm5.3.018 "Change history time to be the middle of the time bounds" and keeping CLM history consistent with CAM history, the CTSM5.4 change intends to prevent confusion associated with the time corresponding to instantaneous history fields by putting them on separate files than non-instantaneous fields.
70+
71+
The now separate instantaneous history files represent the exact time step when they were written and do not include a time\_bounds variable. Conversely, non-instantaneous history files represent the period of their time\_bounds variable. As a result, time data on non-instantaneous history files are now read correctly during post processing (e.g. by xarray). Special handling may still be needed for instantaneous history files, whose timestamps represent the date and time at the END of the history timestep. So, e.g., an instantaneous variable saved at the end of year 2023 will get the timestamp 2024-01-01 00:00:00.
72+
73+
Users will now see:
74+
75+
1\) Two history files per clm, mosart, and rtm history tape:
76+
tape h0 becomes h0a and h0i
77+
tape h1 becomes h1a and h1i
78+
...
79+
tape hX becomes hXa and hXi
80+
81+
2\) Two history-restart files per history restart tape:
82+
rh0 becomes rh0a and rh0i
83+
rh1 becomes rh1a and rh1i
84+
...
85+
rhX becomes rhXa and rhXi
86+
87+
The CLM handles empty history (and corresponding history-restart) files by not generating them, while rtm and mosart give an error. Instead of refactoring rtm and mosart to behave like the clm (considered out of scope), we have introduced one active instantaneous field in mosart and one in rtm to bypass the "empty file" error.
88+
89+
## New surface datasets and landuse timeseries files (https://github.com/ESCOMP/CTSM/pull/3482)
90+
91+
* Transient landuse timeseries files going back to 1700 made for f09 and 360x720 grids.
92+
* New resolutions now supported: ne3np4.pg3, mpasa30, ne0np4.NATL.ne30x8 (https://github.com/ESCOMP/CTSM/pull/3482)
93+
* Updates to input datasets (also referred to as raw datasets):
94+
* PFT/LAI/soil-color raw datasets; now from the CMIP7 timeseries that ends in 2023 (Issue [\#2851](https://github.com/ESCOMP/CTSM/issues/2851)).
95+
* Two fire datasets: crop fire peak month and population density (https://github.com/ESCOMP/CTSM/issues/2701 https://github.com/ESCOMP/CTSM/issues/3302).
96+
* Transient (historical) urban datasets are now based on CMIP7 urban data, partitioned into TBD, HD, and MD classes in proportion to GaoOneill present day classification.
97+
98+
## Changes to FATES and the FATES parameter file
99+
100+
* See [HLM-FATES compatibility table](https://fates-users-guide.readthedocs.io/en/latest/user/release-tags-compat-table.html) in the FATES user’s guide for all FATES tags associated with CTSM tag updates
101+
* FATES answer changing updates
102+
* The default hydro solver is updated to 2D Picard from 1D Taylor ([ctsm5.3.027](https://github.com/ESCOMP/CTSM/releases/tag/ctsm5.3.027))
103+
* Simplified leaf sun-shade fraction for two-stream radiation ([sci.1.83.0\_api.39.0.0](https://github.com/NGEET/fates/releases/tag/sci.1.83.0_api.39.0.0))
104+
* Default maximum canopy layer updated from 2 to 3 ([sci.1.87.1\_api.41.0.0](https://github.com/NGEET/fates/releases/tag/sci.1.87.1_api.41.0.0))
105+
* Various bug fixes (see compatibility table)
106+
* FATES Parameter File Updates
107+
* ctsm5.3.025 (API 37\)
108+
* Adds pft-dependent btran model switches
109+
* Adds parameters for land use grazing
110+
* Updates the FATES z0mr turbulence parameters for consistency with CLM
111+
* ctsm5.3.027 (API 38\)
112+
* Migrates a number of global parameter file variables to the namelist
113+
* Adds \`fates\_leaf\_fnps\` parameter for the electron transport model
114+
* \`fates\_leaf\_theta\_cj\_c3\` and \`fates\_leaf\_theta\_cj\_c4\` depricated
115+
* ctsm5.3.045 (API 40\)
116+
* Changes to the default competitive exclusion parameter from probabilistic to rank-ordered sorting of cohorts by default
117+
* Sets the logging default to clear cut
118+
* Refactors the pft-specific phenology habit selection into a single parameter
119+
* ctsm5.3.070 (API 41\)
120+
* Add parameters for the managed fire feature addition
121+
* Corrects the fates landuse crop pft to c3 cool grass
122+
123+
## New ctsm\_pylib conda environment
124+
125+
If you have a ctsm\_pylib conda environment installed from before ctsm5.3.040, you may want to keep that under a different name. We suggest the following command for doing this in a local copy of ctsm5.3.040 or later:
126+
127+
```shell
128+
./py_env_create -r ctsm_pylib_old
129+
```
130+
131+
This first renames your existing ctsm\_pylib to ctsm\_pylib\_old and then installs the Python 3.13.2 version as ctsm\_pylib. If you are unsure whether you already have ctsm\_pylib installed, use the same command regardless, as it will skip the renaming step if necessary.
132+
133+
Information about additional py\_env\_create options — including how to install a fresh copy of the old conda environment — is available as follows:
134+
135+
```shell
136+
./py_env_create --help
137+
```
138+
139+
## Potentially time-evolving \`leafcn\_target\` replaces time-constant \`leafcn\`
140+
141+
The former is calculated as a function of the latter and can be time-evolving depending on new paramfile parameter \`leafcn\_co2\_slope\` https://github.com/ESCOMP/ctsm/pull/1654. The time-evolving effect defaults to off with \`leafcn\_co2\_slope\` \= 0 on the parameter file.
142+
143+
# Simulations supporting this release by providing initial conditions
144+
145+
* f19 \`Clm60BgcCruJra\` 16pft: https://github.com/NCAR/LMWG_dev/issues/125
146+
* f09 with \`Clm60BgcCropCruJra\`: https://github.com/NCAR/LMWG_dev/issues/124
147+
* ne30 with \`Clm60BgcCropCruJra\`: https://github.com/NCAR/LMWG_dev/issues/123 (123\_HIST\_popDens)
148+
* ne30 SP https://github.com/NCAR/LMWG_dev/issues/126
149+
* f09 SP https://github.com/NCAR/LMWG_dev/issues/127
150+

bld/CLMBuildNamelist.pm

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,14 @@ sub setup_cmdl_resolution {
735735
$log->verbose_message( "This is NOT a NEON site" );
736736
}
737737

738+
#
739+
# To determine CMIP era
740+
# TODO slevis: Ideally this line would occupy a new subroutine, e.g.
741+
# subr. process_envxml_flags that would get called from
742+
# process_namelist_user_input. This would allow other such
743+
# XML variables to be set in the same place in the future (issue #3547).
744+
$nl_flags->{'cmip_era'} = $envxml_ref->{'CLM_CMIP_ERA'};
745+
738746
}
739747

740748
#-------------------------------------------------------------------------------
@@ -2367,6 +2375,7 @@ sub setup_logic_urban {
23672375
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'urban_hac');
23682376
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'urban_explicit_ac');
23692377
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'urban_traffic');
2378+
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'init_interp_fill_missing_urban_with_HD');
23702379
}
23712380

23722381
#-------------------------------------------------------------------------------
@@ -2513,11 +2522,13 @@ sub setup_logic_demand {
25132522
# For landuse.timeseries try with crop on first eise try with exact settings
25142523
# Logic for this is identical for fsurdat
25152524
if ( $item eq "flanduse_timeseries" ) {
2525+
$settings{'cmip_era'} = $nl_flags->{'cmip_era'};
25162526
$settings{'use_crop'} = ".true.";
25172527
$settings{'nofail'} = 1;
25182528
}
25192529
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $item, %settings );
25202530
if ( $item eq "flanduse_timeseries" ) {
2531+
$settings{'cmip_era'} = $nl_flags->{'cmip_era'};
25212532
$settings{'nofail'} = 0;
25222533
$settings{'use_crop'} = $nl_flags->{'use_crop'};
25232534
if ( ! defined($nl->get_value( $item )) ) {
@@ -2567,6 +2578,7 @@ sub setup_logic_surface_dataset {
25672578
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $var,
25682579
'hgrid'=>$nl_flags->{'res'}, 'ssp_rcp'=>$nl_flags->{'ssp_rcp'},
25692580
'neon'=>$nl_flags->{'neon'}, 'neonsite'=>$nl_flags->{'neonsite'},
2581+
'cmip_era'=>$nl_flags->{'cmip_era'},
25702582
'sim_year'=>$nl_flags->{'sim_year'}, 'use_vichydro'=>$nl_flags->{'use_vichydro'},
25712583
'use_crop'=>".true.", 'use_fates'=>$nl_flags->{'use_fates'}, 'nofail'=>1);
25722584
}
@@ -2580,6 +2592,7 @@ sub setup_logic_surface_dataset {
25802592
'hgrid'=>$nl_flags->{'res'}, 'ssp_rcp'=>$nl_flags->{'ssp_rcp'}, 'use_vichydro'=>$nl_flags->{'use_vichydro'},
25812593
'sim_year'=>$nl_flags->{'sim_year'}, 'use_fates'=>$nl_flags->{'use_fates'},
25822594
'neon'=>$nl_flags->{'neon'}, 'neonsite'=>$nl_flags->{'neonsite'},
2595+
'cmip_era'=>$nl_flags->{'cmip_era'},
25832596
'use_crop'=>$nl_flags->{'use_crop'} );
25842597
}
25852598
#
@@ -4430,7 +4443,9 @@ sub setup_logic_cropcal_streams {
44304443
if ( &value_is_true($cropcals_rx) or &value_is_true($cropcals_rx_adapt) ) {
44314444
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_fldFileName_swindow_start');
44324445
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_fldFileName_swindow_end');
4433-
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_fldfilename_cultivar_gdds');
4446+
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_fldfilename_cultivar_gdds',
4447+
'lnd_tuning_mode'=>$nl_flags->{'lnd_tuning_mode'}
4448+
);
44344449
if ( &value_is_true($cropcals_rx_adapt) ) {
44354450
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'stream_fldFileName_gdd20_baseline', 'stream_gdd20_seasons'=>$stream_gdd20_seasons);
44364451
}
@@ -5495,7 +5510,7 @@ sub add_default {
54955510
" Are defaults provided for this resolution and land mask?" );
54965511
} else {
54975512
$log->fatal_error("No default value found for $var.\n" .
5498-
" Are defaults provided for this resolution and land mask?");
5513+
" Are defaults provided in namelist_defaults for this resolution, land mask, and CLM_CMIP_ERA (set in env_run.xml)?");
54995514
}
55005515
}
55015516
else {

0 commit comments

Comments
 (0)