From 565822c902f9236453b2e046315e389eb9a6a8d6 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Thu, 22 Oct 2026 09:01:50 -0700 Subject: [PATCH 01/14] update gitmodule for fates ctsm6 maintence branch tag --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 6ff4b67f13..bfb3583e23 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,7 +28,7 @@ [submodule "fates"] path = src/fates url = https://github.com/NGEET/fates -fxtag = sci.1.92.7_api.46.0.0 +fxtag = sci.2.0.0_api.46.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 From 30bf1ccd9b45b4ccf806c949f17d758403cb1b52 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Mon, 26 Oct 2026 10:11:15 -0600 Subject: [PATCH 02/14] correct api in fates tag --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index bfb3583e23..36971f4b4e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,7 +28,7 @@ [submodule "fates"] path = src/fates url = https://github.com/NGEET/fates -fxtag = sci.2.0.0_api.46.0.0-maint-ctsm6.0-r01 +fxtag = sci.2.0.0_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 From e44f5e84659e0814a892b10011ee0803b3f1771b Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Tue, 17 Nov 2026 12:46:52 -0800 Subject: [PATCH 03/14] update fates tag to official maintenance tag --- .gitmodules | 2 +- src/fates | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 36971f4b4e..50440196ee 100644 --- a/.gitmodules +++ b/.gitmodules @@ -28,7 +28,7 @@ [submodule "fates"] path = src/fates url = https://github.com/NGEET/fates -fxtag = sci.2.0.0_api.47.0.0-maint-ctsm6.0-r01 +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 diff --git a/src/fates b/src/fates index c62abca221..031129e4a3 160000 --- a/src/fates +++ b/src/fates @@ -1 +1 @@ -Subproject commit c62abca2214059b2ed1710f596fb666365c63f61 +Subproject commit 031129e4a31ec4f71d59d6ba011c286674fa7267 From a80dd4042554d3924328a7e5708d2b0c37937d96 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Tue, 17 Nov 2026 14:34:00 -0800 Subject: [PATCH 04/14] test: add expected failure per ngeet/fates#1634 --- cime_config/testdefs/ExpectedTestFails.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cime_config/testdefs/ExpectedTestFails.xml b/cime_config/testdefs/ExpectedTestFails.xml index 0b65aa5a1c..c2e699697c 100644 --- a/cime_config/testdefs/ExpectedTestFails.xml +++ b/cime_config/testdefs/ExpectedTestFails.xml @@ -263,6 +263,13 @@ + + + FAIL + fates#1634 + + + From f679ad636b7390e58cc317f1dee5ae042b5a03ed Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Wed, 18 Nov 2026 10:04:00 -0800 Subject: [PATCH 05/14] test: add expected fates hydro testmod failure Due to ngeet/fates#1634 --- cime_config/testdefs/ExpectedTestFails.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cime_config/testdefs/ExpectedTestFails.xml b/cime_config/testdefs/ExpectedTestFails.xml index c2e699697c..efb21eb554 100644 --- a/cime_config/testdefs/ExpectedTestFails.xml +++ b/cime_config/testdefs/ExpectedTestFails.xml @@ -270,6 +270,13 @@ + + + FAIL + fates#1634 + + + From 173744a5cc8c99713e5048bc5a69bf4baf416309 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Wed, 18 Nov 2026 10:06:00 -0800 Subject: [PATCH 06/14] test: add izumi version of expected hydro testmod failure --- cime_config/testdefs/ExpectedTestFails.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cime_config/testdefs/ExpectedTestFails.xml b/cime_config/testdefs/ExpectedTestFails.xml index efb21eb554..cc0868581a 100644 --- a/cime_config/testdefs/ExpectedTestFails.xml +++ b/cime_config/testdefs/ExpectedTestFails.xml @@ -263,6 +263,13 @@ + + + FAIL + fates#1634 + + + FAIL From c9290dc5d49dd7794ecbcc17459eec1e3fb37a83 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Wed, 18 Nov 2026 13:45:58 -0700 Subject: [PATCH 07/14] test: increase izumi fates cstarv wallclock --- cime_config/testdefs/testlist_clm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cime_config/testdefs/testlist_clm.xml b/cime_config/testdefs/testlist_clm.xml index e97458c114..a3125e3771 100644 --- a/cime_config/testdefs/testlist_clm.xml +++ b/cime_config/testdefs/testlist_clm.xml @@ -4199,7 +4199,7 @@ - + From f29e168114278b10b4cfea328dd6307eed832de1 Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Sun, 22 Nov 2026 19:11:46 -0700 Subject: [PATCH 08/14] Start at the change files --- doc/ChangeLog | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/ChangeSum | 1 + 2 files changed, 97 insertions(+) diff --git a/doc/ChangeLog b/doc/ChangeLog index 440a564e6e..ee565d8062 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,4 +1,100 @@ =============================================================== +Tag name: ctsm5.4.070 +Originator(s): glemieux (Greg Lemieux) +Date: Sun Nov 22 06:22:08 PM 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. + +Bugs fixed +---------- + +List of CTSM issues fixed (include CTSM Issue # and description) [one per line]: + +Notes of particular relevance for users +--------------------------------------- + +None + +Contributors: + +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 - + + python testing (if python or CIME code has changed; see instructions in python/README.md; document testing done): + + derecho - + + regular tests (aux_clm: https://github.com/ESCOMP/CTSM/wiki/System-Testing-Guide#pre-merge-system-testing): + + derecho ----- OK + izumi ------- + + fates tests: (give name of baseline if different from CTSM tagname, normally fates baselines are fates--) + derecho ----- OK + izumi ------- + +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) + - LMWG_dev issue number(s): + + - details (casename, machine, user, link to plots etc.) [if not in LMWG_dev] + +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 maintence branch tag update + +=============================================================== +=============================================================== Tag name: ctsm5.4.069 Originator(s): samrabin (Sam Rabin) Date: Thu Nov 12 12:03:59 MST 2026 diff --git a/doc/ChangeSum b/doc/ChangeSum index 3057305abc..d986ffc28e 100644 --- a/doc/ChangeSum +++ b/doc/ChangeSum @@ -1,5 +1,6 @@ Tag Who Date Summary ============================================================================================================================ + ctsm5.4.070 glemieux 11/22/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 From 267325716563df62406b04a9e2c39c6dc97e138b Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Sun, 22 Nov 2026 21:35:53 -0700 Subject: [PATCH 09/14] Remove #3500 from the expected fails, it just started working in ctsm5.4.068 --- cime_config/testdefs/ExpectedTestFails.xml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cime_config/testdefs/ExpectedTestFails.xml b/cime_config/testdefs/ExpectedTestFails.xml index cc0868581a..30bb29a021 100644 --- a/cime_config/testdefs/ExpectedTestFails.xml +++ b/cime_config/testdefs/ExpectedTestFails.xml @@ -197,15 +197,6 @@ - - FAIL From df6a7a25f005b57c7a1b40641977df11600ba48f Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Sun, 22 Nov 2026 22:48:59 -0700 Subject: [PATCH 10/14] Remove a passing test from expected fails --- cime_config/testdefs/ExpectedTestFails.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cime_config/testdefs/ExpectedTestFails.xml b/cime_config/testdefs/ExpectedTestFails.xml index 30bb29a021..f205b96f6f 100644 --- a/cime_config/testdefs/ExpectedTestFails.xml +++ b/cime_config/testdefs/ExpectedTestFails.xml @@ -233,13 +233,6 @@ - - - FAIL - FATES#1534 - - - FAIL From 7497608f22e042ca1b0e9260df661c6ea2091c7c Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Sun, 22 Nov 2026 23:35:14 -0700 Subject: [PATCH 11/14] Fix number of tests for comparison --- bld/unit_testers/build-namelist_test.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bld/unit_testers/build-namelist_test.pl b/bld/unit_testers/build-namelist_test.pl index 1f3e21d2e6..d60814ab29 100755 --- a/bld/unit_testers/build-namelist_test.pl +++ b/bld/unit_testers/build-namelist_test.pl @@ -168,7 +168,7 @@ sub cat_and_create_namelistinfile { my $ntests = 3425; if ( defined($opts{'compare'}) ) { - $ntests += 2061; + $ntests += 2065; } plan( tests=>$ntests ); From 0fd707fd0157edbb9673cbea9703e896c566af83 Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Sun, 22 Nov 2026 23:44:26 -0700 Subject: [PATCH 12/14] More updates to change files --- doc/ChangeLog | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index ee565d8062..fc83d89283 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,7 +1,7 @@ =============================================================== Tag name: ctsm5.4.070 Originator(s): glemieux (Greg Lemieux) -Date: Sun Nov 22 06:22:08 PM MST 2026 +Date: Sun Nov 22 11:44:11 PM 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 @@ -12,18 +12,23 @@ Until ctsm6.0.0 we will use this branch, with the exception of possible changes 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: +Contributors: @rgknox, @mvdebolskiy, and @JessicaNeedham to the FATES tag Notes of particular relevance for developers: --------------------------------------------- @@ -47,20 +52,20 @@ Testing summary: regular + fates build-namelist tests (if CLMBuildNamelist.pm has changed): - derecho - + derecho - PASS python testing (if python or CIME code has changed; see instructions in python/README.md; document testing done): - derecho - + derecho - PASS regular tests (aux_clm: https://github.com/ESCOMP/CTSM/wiki/System-Testing-Guide#pre-merge-system-testing): derecho ----- OK - izumi ------- + izumi ------- OK fates tests: (give name of baseline if different from CTSM tagname, normally fates baselines are fates--) derecho ----- OK - izumi ------- + izumi ------- OK If the tag used for baseline comparisons was NOT the previous tag, note that here: @@ -77,10 +82,9 @@ Changes answers relative to baseline: Only FATES tests 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) - - LMWG_dev issue number(s): - - - details (casename, machine, user, link to plots etc.) [if not in LMWG_dev] + 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 ------------- @@ -91,7 +95,7 @@ List any git submodules updated (cime, rtm, mosart, cism, fates, etc.): fates Pull Requests that document the changes (include PR ids): (https://github.com/ESCOMP/ctsm/pull) - #4274 -- FATES CTSM6.0 maintence branch tag update + #4274 -- FATES CTSM6.0 maintenance branch tag update =============================================================== =============================================================== From f7de38039999adf19604644de51b58ca242cabfa Mon Sep 17 00:00:00 2001 From: Erik Kluzek Date: Tue, 24 Nov 2026 10:55:48 -0700 Subject: [PATCH 13/14] Update datestamp on final change files --- doc/ChangeLog | 2 +- doc/ChangeSum | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index fc83d89283..d06350c6a3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,7 +1,7 @@ =============================================================== Tag name: ctsm5.4.070 Originator(s): glemieux (Greg Lemieux) -Date: Sun Nov 22 11:44:11 PM MST 2026 +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 diff --git a/doc/ChangeSum b/doc/ChangeSum index d986ffc28e..9b74bb5ad1 100644 --- a/doc/ChangeSum +++ b/doc/ChangeSum @@ -1,6 +1,6 @@ Tag Who Date Summary ============================================================================================================================ - ctsm5.4.070 glemieux 11/22/2026 Update FATES to fates maint branch: sci.1.95.1_api.47.0.0-maint-ctsm6.0-r01 + 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 From 05da88464141847b1e01cc390e13e0a2510901dd Mon Sep 17 00:00:00 2001 From: Adrianna Foster Date: Wed, 25 Nov 2026 15:30:04 -0700 Subject: [PATCH 14/14] add FATES capability --- tools/unsupported/SpinupStability_SP_v10.ncl | 43 +++++++++++++------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/tools/unsupported/SpinupStability_SP_v10.ncl b/tools/unsupported/SpinupStability_SP_v10.ncl index 97eccd8183..a0b0ef84a9 100644 --- a/tools/unsupported/SpinupStability_SP_v10.ncl +++ b/tools/unsupported/SpinupStability_SP_v10.ncl @@ -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" ;=======================================================================; @@ -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,:,:) @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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