Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
[submodule "fates"]
path = src/fates
url = https://github.com/NGEET/fates
fxtag = sci.1.93.3_api.47.0.0
fxtag = sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01
fxrequired = AlwaysRequired
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
fxDONOTUSEurl = https://github.com/NGEET/fates
Expand Down
2 changes: 1 addition & 1 deletion bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ sub cat_and_create_namelistinfile {
my $ntests = 3425;

if ( defined($opts{'compare'}) ) {
$ntests += 2061;
$ntests += 2065;
}
plan( tests=>$ntests );

Expand Down
35 changes: 20 additions & 15 deletions cime_config/testdefs/ExpectedTestFails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,6 @@

<!--- NOTE: Tests also in aux_clm can be included under this comment to avoid duplication -->

<!-- This is commented out because cime currently does NOT allow longnames in the XML in the XSD for this file
<test name="ERS_D_Ld30.f45_f45_mt201.HIST_DATM%CRUv7_CLM50%FATES_SICE_SOCN_SROF_SGLC_SWAV_SESP.izumi_nag.clm-FatesColdLandUse">
<phase name="RUN">
<status>FAIL</status>
<issue>#3500</issue>
</phase>
</test>
-->

<test name="ERP_D_Ld90.f45_f45_mt201.I2000Clm60Fates.izumi_nag.clm-FatesColdCStarvationExp">
<phase name="MEMLEAK">
<status>FAIL</status>
Expand Down Expand Up @@ -242,24 +233,38 @@
</phase>
</test>

<test name="SMS_D_Ld180.f45_f45_mt201.I2000Clm60Fates.derecho_intel.clm-FatesColdTRS">
<test name="ERS_D_Ld30.f45_f45_mt201.I2000Clm50Fates.izumi_nag.clm-FatesColdLUH2">
<phase name="RUN">
<status>FAIL</status>
<issue>FATES#1534</issue>
<issue>#2653</issue>
</phase>
</test>

<test name="ERS_D_Ld30.f45_f45_mt201.I2000Clm50Fates.izumi_nag.clm-FatesColdLUH2">
<test name="SMS_D_Ld3.f09_t233.I2000Clm60FatesSpCrujra.derecho_gnu.clm-FatesColdSatPhen_prescribed">
<phase name="RUN">
<status>FAIL</status>
<issue>#2653</issue>
<issue>#2321</issue>
</phase>
</test>

<test name="SMS_D_Ld3.f09_t233.I2000Clm60FatesSpCrujra.derecho_gnu.clm-FatesColdSatPhen_prescribed">
<test name="ERS_D_Ld5.1x1_brazil.I2000Clm50FatesRsGs.izumi_nag.clm-FatesColdHydro">
<phase name="RUN">
<status>FAIL</status>
<issue>#2321</issue>
<issue>fates#1634</issue>
</phase>
</test>

<test name="ERS_D_Ld5.1x1_brazil.I2000Clm50FatesRsGs.derecho_intel.clm-FatesColdHydro">
<phase name="RUN">
<status>FAIL</status>
<issue>fates#1634</issue>
</phase>
</test>

<test name="SMS_Lm3_D_Mmpi-serial.1x1_brazil.I2000Clm50FatesRsGs.izumi_nag.clm-FatesColdHydro">
<phase name="RUN">
<status>FAIL</status>
<issue>fates#1634</issue>
</phase>
</test>

Expand Down
2 changes: 1 addition & 1 deletion cime_config/testdefs/testlist_clm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4199,7 +4199,7 @@
<machine name="izumi" compiler="nag" category="ctsm_release"/>
</machines>
<options>
<option name="wallclock">01:20:00</option>
<option name="wallclock">02:00:00</option>
<option name="comment">ERP_D FATES test covering FATES exponential carbon starvation (non-default), where the debug option _D allows the test to pass on izumi_nag</option>
</options>
</test>
Expand Down
100 changes: 100 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,104 @@
===============================================================
Tag name: ctsm5.4.070
Originator(s): glemieux (Greg Lemieux)
Date: Tue Nov 24 10:54:00 AM MST 2026
One-line Summary: Update FATES to fates maint branch: sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01

Purpose and description of changes
----------------------------------

Update FATES to the FATES maint branch tag: sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01
Until ctsm6.0.0 we will use this branch, with the exception of possible changes to
the FATES parameter file or required bug-fixes.

This brings in FATES updates that include important updates needed for the ctsm6.0.0 release.
Including bringing in NorESM updates and their FATES parameter file. And fixing important
issues, in for example terminate_patches. Also updating the landuse data tool.

Bugs fixed
----------

List of CTSM issues fixed (include CTSM Issue # and description) [one per line]:
Resolves requirement for FATES to run without crashing #4038
Resolves Define FATES parameter file(s) #4039
Resolves ERP_D_Ld90.f45_f45_mg37.I2000Clm60Fates.izumi_nag.clm-FatesColdCStarvationEx hits wall clock on izumi #4289

Notes of particular relevance for users
---------------------------------------

None

Contributors: @rgknox, @mvdebolskiy, and @JessicaNeedham to the FATES tag

Notes of particular relevance for developers:
---------------------------------------------

Caveats for developers (e.g., code that is duplicated that requires double maintenance):
sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01 is a duplicate of sci.1.95.1_api.47.0.0
It seems likely we'll need to update the FATES parameter file on the branch with changes
But, hopefully that will be the only changes we need. Critically needed bug fixes for
FATES could also be brought in on the maint branch.

For FATES development, we'll create a fates-dev branch, once there is a need for it.

See this document: https://docs.google.com/document/d/1LOxCUZXWPjDGldrd2aJmsGjIVjKOS8-oBBvG5nk_ElU

Changes to tests or testing:
Updates to expected fails, and some adjustments to wallclock for tests

Testing summary: regular + fates
----------------
[PASS means all tests PASS; OK means tests PASS other than expected fails.]

build-namelist tests (if CLMBuildNamelist.pm has changed):

derecho - PASS

python testing (if python or CIME code has changed; see instructions in python/README.md; document testing done):

derecho - PASS

regular tests (aux_clm: https://github.com/ESCOMP/CTSM/wiki/System-Testing-Guide#pre-merge-system-testing):

derecho ----- OK
izumi ------- OK

fates tests: (give name of baseline if different from CTSM tagname, normally fates baselines are fates-<FATES TAG>-<CTSM TAG>)
derecho ----- OK
izumi ------- OK

If the tag used for baseline comparisons was NOT the previous tag, note that here:


Answer changes
--------------

Changes answers relative to baseline: Only FATES tests

Summarize any changes to answers, i.e.,
- what code configurations: FATES
- what platforms/compilers: all
- nature of change (roundoff; larger than roundoff/same climate; new climate):
new climate

If this tag changes climate list the run(s) done to evaluate the new
climate. Preferably in https:://github.com/NCAR/LMWG_dev (or give details below)
- Climate was evaluated by NorESM and others running simulations, for example the TRENDY simulations
- FATES simulations for CTSM will be run with this tag after it's made

Other details
-------------
List any git submodules updated (cime, rtm, mosart, cism, fates, etc.): fates
fates from sci.1.93.3_api.47.0.0 to sci.1.95.1_api.47.0.0
Using the fates-maint branch tag: sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01 (identical to sci.1.93.3_api.47.0.0)

Pull Requests that document the changes (include PR ids):
(https://github.com/ESCOMP/ctsm/pull)

#4274 -- FATES CTSM6.0 maintenance branch tag update

===============================================================
===============================================================
Tag name: ctsm5.4.069
Originator(s): samrabin (Sam Rabin)
Date: Thu Nov 12 12:03:59 MST 2026
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeSum
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Tag Who Date Summary
============================================================================================================================
ctsm5.4.070 glemieux 11/24/2026 Update FATES to fates maint branch: sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01
ctsm5.4.069 samrabin 11/12/2026 Merge b4b-dev to master 2026-11-12
ctsm5.4.068 slevis 11/03/2026 Move CTSM tests from gx (POP) grids to tx (MOM) grids
ctsm5.4.067 slevis 10/30/2026 Merge b4b-dev to master
Expand Down
43 changes: 28 additions & 15 deletions tools/unsupported/SpinupStability_SP_v10.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ begin
; The script assumes that your history files are in /glade/derecho/scratch/$username/archive/$caseid/lnd/hist
;=======================================================================;

caseid = "clm50sp_cesm23a02cPPEn08ctsm51d030_1deg_GSWP3V1_1850spin"
username = "oleson"
caseid = "I1850Clm60FatesSpCrujraRsGs_spinup"
username = "slevis"
annual_hist = "False"
cplot = "Global"
subper = 20
h2osoi_layer = 8 ; Desired soil layer (layer 8 is about 1m)
tsoi_layer = 10 ; Desired soil layer (layer 10 is about 3m)
hist_ext = "h0a" ; Valid options: h0a, h0
fates = "True"

do_plot = "True"
;=======================================================================;
Expand Down Expand Up @@ -109,7 +110,11 @@ begin
if (annual_hist .eq. "True") then
fsh = data[:]->FSH(year,:,:)
lh = data[:]->EFLX_LH_TOT(year,:,:)
gpp = data[:]->FPSN(year,:,:)
if (fates .eq. "True") then
gpp = data[:]->FATES_GPP(year,:,:) * 1000
else
gpp = data[:]->FPSN(year,:,:)
end if
tws = data[:]->TWS(year,:,:)
h2osoi = data[:]->H2OSOI(year,h2osoi_layer-1,:,:)
tsoi = data[:]->TSOI(year,tsoi_layer-1,:,:)
Expand All @@ -129,7 +134,11 @@ begin
delete(tmp3)
delete(tot)
end if
gpp = month_to_annual(data[:]->FPSN,1)
if (fates .eq. "True") then
gpp = month_to_annual(data[:]->FATES_GPP,1) * 1000
else
gpp = month_to_annual(data[:]->FPSN,1)
end if
if (isfilevar(data[0],"TWS")) then
tws = month_to_annual(data[:]->TWS,1)
else
Expand Down Expand Up @@ -178,7 +187,7 @@ begin
fsh_glob = dim_sum_n(fsh*landareaL/areasum,(/1,2/)) ; weighted global fsh (W m-2)
fsh_glob!0 = "year"
fsh_glob&year = yearplt
fsh_glob_del = new(nyrs-1,"float")
fsh_glob_del = new(nyrs-1,typeof(fsh_glob))
do i = 0,nyrs-2
fsh_glob_del(i) = (fsh_glob(i+1) - fsh_glob(i))/subper
end do
Expand Down Expand Up @@ -209,7 +218,7 @@ begin
fsh_glob_equil = -999
fsh_glob = new(dimsizes(dim_sum_n(fsh,(/1,2/))),typeof(fsh),-999)
fsh_glob = -999
fsh_glob_del = new(nyrs-1,"float",-999.)
fsh_glob_del = new(nyrs-1,typeof(fsh_glob),-999.)
fsh_glob_del = -999.
end if

Expand All @@ -219,7 +228,7 @@ begin
lh_glob = dim_sum_n(lh*landareaL/areasum,(/1,2/)) ; weighted global lh (W m-2)
lh_glob!0 = "year"
lh_glob&year = yearplt
lh_glob_del = new(nyrs-1,"float")
lh_glob_del = new(nyrs-1,typeof(lh_glob))
do i = 0,nyrs-2
lh_glob_del(i) = (lh_glob(i+1) - lh_glob(i))/subper
end do
Expand Down Expand Up @@ -257,11 +266,15 @@ begin
; GPP
landareaC = conform_dims(dimsizes(gpp),landarea,(/1,2/)) ; conforming dimensions of landarea to gpp
gpp_area = gpp*landareaC ; correcting gpp for total land area
gpp_pg = gpp_area*gtoPg*secinyr*umoleCO2tomoleCO2*moleCO2togCO2*gCO2togC ; umole CO2/s->Pg Carbon
if (fates .eq. "True") then
gpp_pg = gpp_area*gtoPg*secinyr
else
gpp_pg = gpp_area*gtoPg*secinyr*umoleCO2tomoleCO2*moleCO2togCO2*gCO2togC ; umole CO2/s->Pg Carbon
end if
gpp_glob = dim_sum_n(gpp_pg, (/1,2/)) ; sums over all latitudes
gpp_glob!0 = "year"
gpp_glob&year = yearplt
gpp_glob_del = new(nyrs-1,"float")
gpp_glob_del = new(nyrs-1,typeof(gpp_glob))
do i = 0,nyrs-2
gpp_glob_del(i) = (gpp_glob(i+1) - gpp_glob(i))/subper
end do
Expand Down Expand Up @@ -291,7 +304,7 @@ begin
tws_glob = (dim_sum_n(tws*landareaL/areasum,(/1,2/)))/1.e3 ; weighted global tws (meters)
tws_glob!0 = "year"
tws_glob&year = yearplt
tws_glob_del = new(nyrs-1,"float")
tws_glob_del = new(nyrs-1,typeof(tws_glob))
do i = 0,nyrs-2
tws_glob_del(i) = (tws_glob(i+1) - tws_glob(i))/subper
end do
Expand Down Expand Up @@ -323,7 +336,7 @@ begin
h2osoi_glob = dim_sum_n(h2osoi*landareaL/areasum,(/1,2/)) ; weighted global h2osoi (mm)
h2osoi_glob!0 = "year"
h2osoi_glob&year = yearplt
h2osoi_glob_del = new(nyrs-1,"float")
h2osoi_glob_del = new(nyrs-1,typeof(h2osoi_glob))
do i = 0,nyrs-2
h2osoi_glob_del(i) = (h2osoi_glob(i+1) - h2osoi_glob(i))/subper
end do
Expand Down Expand Up @@ -355,7 +368,7 @@ begin
h2osoi_glob_equil = -999
h2osoi_glob = new(dimsizes(dim_sum_n(h2osoi,(/1,2/))),typeof(h2osoi),-999)
h2osoi_glob = -999
h2osoi_glob_del = new(nyrs-1,"float",-999.)
h2osoi_glob_del = new(nyrs-1,typeof(h2osoi_glob),-999.)
h2osoi_glob_del = -999.
end if

Expand All @@ -365,7 +378,7 @@ begin
tsoi_glob = dim_sum_n(tsoi*landareaL/areasum,(/1,2/)) ; weighted global tsoi (mm)
tsoi_glob!0 = "year"
tsoi_glob&year = yearplt
tsoi_glob_del = new(nyrs-1,"float")
tsoi_glob_del = new(nyrs-1,typeof(tsoi_glob))
do i = 0,nyrs-2
tsoi_glob_del(i) = (tsoi_glob(i+1) - tsoi_glob(i))/subper
end do
Expand Down Expand Up @@ -397,12 +410,12 @@ begin
h2osno_glob_equil = -999
h2osno_glob = new(dimsizes(dim_sum_n(h2osno,(/1,2/))),typeof(h2osno),-999)
h2osno_glob = -999
h2osno_glob_del = new(nyrs-1,"float",-999.)
h2osno_glob_del = new(nyrs-1,typeof(h2osno_glob),-999.)
h2osno_glob_del = -999.
end if

; Land area not in TWS equilibrium
landarea_noequil = new((/nyrs-1,nlat,nlon/),"float")
landarea_noequil = new((/nyrs-1,nlat,nlon/),typeof(landarea))
do i = 0,nyrs-2
landarea_noequil(i,:,:) = where(abs(tws(i+1,:,:)/1.e3 - tws(i,:,:)/1.e3)/subper .gt. tws_thresh, landarea, 0.)
end do
Expand Down
Loading