Skip to content

Commit

Permalink
Merge pull request #2976 from ekluzek/merge-master-20250227
Browse files Browse the repository at this point in the history
Merge master 20250227
  • Loading branch information
ekluzek authored Feb 27, 2025
2 parents 7a4365d + b2550da commit bc3d458
Show file tree
Hide file tree
Showing 7 changed files with 252 additions and 10 deletions.
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.80.11_api.37.0.0
fxtag = sci.1.81.0_api.37.1.0
fxrequired = AlwaysRequired
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
fxDONOTUSEurl = https://github.com/NCAR/fates-release
Expand Down
2 changes: 1 addition & 1 deletion bld/namelist_files/namelist_defaults_ctsm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
<!-- FATES default parameter file -->
<!-- ================================================================== -->

<fates_paramfile>lnd/clm2/paramdata/fates_params_api.36.1.0_14pft_c241003.nc</fates_paramfile>
<fates_paramfile>lnd/clm2/paramdata/fates_params_api.37.1.0_14pft_c250214.nc</fates_paramfile>


<!-- ================================================================== -->
Expand Down
237 changes: 236 additions & 1 deletion doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,239 @@
===============================================================
Tag name: ctsm5.3.026
Originator(s): erik (Erik Kluzek,UCAR/TSS,303-497-1326)
Date: Wed 26 Feb 2025 09:55:48 AM MST
One-line Summary: Merge b4b-dev to master: run_tower updates, reduce log noise

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

Merge b4b-dev to master.

Some run_tower updatesm, fix some issues, and improve code health. Also reduces some log noise.


Significant changes to scientifically-supported configurations
--------------------------------------------------------------

Does this tag change answers significantly for any of the following physics configurations?
(Details of any changes will be given in the "Answer changes" section below.)

[Put an [X] in the box for any configuration with significant answer changes.]

[ ] clm6_0

[ ] clm5_0

[ ] ctsm5_0-nwp

[ ] clm4_5


Bugs fixed
----------
List of CTSM issues fixed (include CTSM Issue # and description) [one per line]:
Resolves #2884 -- run_neon overwrite ignored
Resolves #2885 -- run_neon setup_only ignored
Resolves #2946 -- python tests much longer
Resolves #2717 -- cleanup cesm log
Resolves #2737 -- reduce log noise

Notes of particular relevance for users
---------------------------------------
Changes to CTSM's user interface (e.g., new/renamed XML or namelist variables):
Two new options to run_tower:
--no-inputdata-check option implies --setup-only but skips the check/download of input data. This is used instead of --setup-only
in run_tower system testing for a speedup of ~20%.
--xmlchange option allows user to specify xmlchange settings to apply. E.g., --xmlchange CLM_CO2_TYPE=constant,CCSM_CO2_PPMV=850.

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

Caveats for developers (e.g., code that is duplicated that requires double maintenance):

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

python testing (if python 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

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


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

Changes answers relative to baseline: No bit-for-bit

Other details
-------------

Pull Requests that document the changes (include PR ids):
(https://github.com/ESCOMP/ctsm/pull)
#2969 -- Simplify tower types
#2962 -- Run tower fix and improvements
#2927 -- Remove log noise

===============================================================
===============================================================
Tag name: ctsm5.3.025
Originator(s): glemieux (Gregory Lemieux, LBNL, glemieux@lbl.gov)
Date: Thu Feb 20 14:24:45 MST 2025
One-line Summary: FATES default parameter file update

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

This tag updates the default parameter file for FATES bringing in a number of updates:
- adds parameters for land use grazing
- updates the FATES z0mr turbulence parameters for consistency with CLM
- adds FATES pft-dependent btran model switches for a forthcoming update
- updates the default hydro solver switch to Picard 2D

This also updates the default FATES tag which includes two issue fixes and introduces
the aforementioned land use grazing capability.

Significant changes to scientifically-supported configurations
--------------------------------------------------------------

Does this tag change answers significantly for any of the following physics configurations?
(Details of any changes will be given in the "Answer changes" section below.)

[Put an [X] in the box for any configuration with significant answer changes.]

[ ] clm6_0

[ ] clm5_0

[ ] ctsm5_0-nwp

[ ] clm4_5


Bugs fixed
----------
List of CTSM issues fixed (include CTSM Issue # and description) [one per line]:
Fixes FATES#1316 -- z0mr parameters are all the same in the default parameter file
Fixes FATES#773 -- update the default hydraulics solver?

Notes of particular relevance for users
---------------------------------------
Changes to CTSM's user interface (e.g., new/renamed XML or namelist variables):
The FATES tag update includes new history outputs associated with land use grazing.

Changes made to namelist defaults (e.g., changed parameter values):
The fates default parameter file has been updated. See the associated FATES pull
requests for more detail.


Testing summary:
----------------

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

derecho -----
izumi -------

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

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

Changes answers relative to baseline: Yes, for FATES tests only

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


Other details
-------------
List any git submodules updated (cime, rtm, mosart, cism, fates, etc.):
fates: sci.1.80.11_api.37.0.0 -> sci.1.81.0_api.37.1.0

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

===============================================================
===============================================================
Tag name: ctsm5.3.024
Originator(s): xinchang (Cathy Xinchang Li, U of Illinois - Urbana-Champaign)
Date: Tue Feb 11 09:56:24 MST 2025
One-line Summary: Change choice of pressure in CLMU building energy model

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

In the CLMU Building Energy Model (BEM), the choice of pressure for calculating indoor air density is changed from standard pressure to bottom layer of atmosphere pressure of the corresponding grid cell.

Significant changes to scientifically-supported configurations
--------------------------------------------------------------

Does this tag change answers significantly for any of the following physics configurations?
(Details of any changes will be given in the "Answer changes" section below.)

[Put an [X] in the box for any configuration with significant answer changes.]

[ ] clm6_0

[ ] clm5_0

[ ] ctsm5_0-nwp

[ ] clm4_5

Bugs fixed
----------
List of CTSM issues fixed (include CTSM Issue # and description) [one per line]:
Resolves #2755

Notes of particular relevance for users
---------------------------------------
Changes to documentation:
From the PR: I have updated the inline documentation in the code where it's needed

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

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

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

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

Changes answers relative to baseline: Yes

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

From the PR: Some urban variables such as urban 2m air temperature, 2m relative humidity, urban air-conditioning and heating energy fluxes will change slightly. See #2755 for details.

slevis from running aux_clm: I see larger differences that seem justified as simulations typically diverge from small initial differences.

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

===============================================================
===============================================================
Tag name: ctsm5.3.023
Originator(s): afoster (Adrianna Foster)
Date: Sat Feb 8 08:36:00 MST 2025
Expand Down Expand Up @@ -4220,7 +4455,7 @@ Pull Requests that document the changes (include PR ids):
===============================================================
===============================================================
Tag name: ctsm5.2.010
Originator(s): @cathyxinchangli (Cathy Xinchang Li, U of Illinois - Urbana-Champaign), @Face2sea, @olyson, @fang-bowen, @keerzhang1
Originator(s): xinchang (Cathy Xinchang Li, U of Illinois - Urbana-Champaign), @Face2sea, @olyson, @fang-bowen, @keerzhang1
Date: Thu 11 Jul 2024 11:57:15 AM MDT
One-line Summary: Explicit A/C adoption

Expand Down
3 changes: 3 additions & 0 deletions doc/ChangeSum
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Tag Who Date Summary
============================================================================================================================
ctsm5.3.026 samrabin 02/26/2025 Merge b4b-dev to master: run_tower updates, reduce log noise
ctsm5.3.025 glemieux 02/20/2025 FATES default parameter file update
ctsm5.3.024 xinchang 02/11/2025 Change choice of pressure in CLMU building energy model
ctsm5.3.023 afoster 02/08/2025 merge b4b-dev
ctsm5.3.022 glemieux 02/06/2025 Update FATES namelist build to avoid Meier2022
ctsm5.3.021 samrabin 01/29/2025 Standardize time metadata (release tag for ctsm5.3)
Expand Down
2 changes: 1 addition & 1 deletion src/biogeophys/SoilTemperatureMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ subroutine SoilTemperature(bounds, num_urbanl, filter_urbanl, num_urbanc, filter
if ( IsProgBuildTemp() )then
call BuildingTemperature(bounds, num_urbanl, filter_urbanl, num_nolakec, filter_nolakec, &
tk(bounds%begc:bounds%endc, :), urbanparams_inst, &
temperature_inst, energyflux_inst, urbantv_inst)
temperature_inst, energyflux_inst, urbantv_inst, atm2lnd_inst)
end if

do fc = 1,num_nolakec
Expand Down
14 changes: 9 additions & 5 deletions src/biogeophys/UrbBuildTempOleson2015Mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module UrbBuildTempOleson2015Mod
use UrbanTimeVarType , only : urbantv_type
use EnergyFluxType , only : energyflux_type
use TemperatureType , only : temperature_type
use atm2lndType , only : atm2lnd_type
use LandunitType , only : lun
use ColumnType , only : col
!
Expand All @@ -42,7 +43,7 @@ module UrbBuildTempOleson2015Mod
! !INTERFACE:
subroutine BuildingTemperature (bounds, num_urbanl, filter_urbanl, num_nolakec, &
filter_nolakec, tk, urbanparams_inst, temperature_inst, &
energyflux_inst, urbantv_inst)
energyflux_inst, urbantv_inst, atm2lnd_inst)
!
! !DESCRIPTION:
! Solve for t_building, inner surface temperatures of roof, sunw, shdw, and floor temperature
Expand Down Expand Up @@ -202,7 +203,7 @@ subroutine BuildingTemperature (bounds, num_urbanl, filter_urbanl, num_nolakec,
! !USES:
use shr_kind_mod , only : r8 => shr_kind_r8
use clm_time_manager, only : get_step_size_real
use clm_varcon , only : rair, pstd, cpair, sb, hcv_roof, hcv_roof_enhanced, &
use clm_varcon , only : rair, cpair, sb, hcv_roof, hcv_roof_enhanced, &
hcv_floor, hcv_floor_enhanced, hcv_sunw, hcv_shdw, &
em_roof_int, em_floor_int, em_sunw_int, em_shdw_int, &
dz_floor, dens_floor, cp_floor, vent_ach
Expand All @@ -224,10 +225,11 @@ subroutine BuildingTemperature (bounds, num_urbanl, filter_urbanl, num_nolakec,
type(temperature_type), intent(inout) :: temperature_inst ! temperature variables
type(energyflux_type) , intent(inout) :: energyflux_inst ! energy flux variables
type(urbantv_type) , intent(in) :: urbantv_inst ! urban time varying variables
type(atm2lnd_type) , intent(in) :: atm2lnd_inst ! forcing variables from atmosphere
!
! !LOCAL VARIABLES:
integer, parameter :: neq = 5 ! number of equation/unknowns
integer :: fc,fl,c,l ! indices
integer :: fc,fl,c,l,g ! indices
real(r8) :: dtime ! land model time step (s)
real(r8) :: building_hwr(bounds%begl:bounds%endl) ! building height to building width ratio (-)
real(r8) :: t_roof_inner_bef(bounds%begl:bounds%endl) ! roof inside surface temperature at previous time step (K)
Expand Down Expand Up @@ -310,6 +312,7 @@ subroutine BuildingTemperature (bounds, num_urbanl, filter_urbanl, num_nolakec,
ctype => col%itype , & ! Input: [integer (:)] column type
zi => col%zi , & ! Input: [real(r8) (:,:)] interface level below a "z" level (m)
z => col%z , & ! Input: [real(r8) (:,:)] layer thickness (m)
forc_pbot => atm2lnd_inst%forc_pbot_not_downscaled_grc, & ! Input: [real(r8) (:)] atmospheric pressure (Pa)

ht_roof => lun%ht_roof , & ! Input: [real(r8) (:)] height of urban roof (m)
canyon_hwr => lun%canyon_hwr , & ! Input: [real(r8) (:)] ratio of building height to street hwidth (-)
Expand Down Expand Up @@ -348,6 +351,7 @@ subroutine BuildingTemperature (bounds, num_urbanl, filter_urbanl, num_nolakec,
! 5. Calculate building height to building width ratio
do fl = 1,num_urbanl
l = filter_urbanl(fl)
g = lun%gridcell(l)
if (urbpoi(l)) then
t_roof_inner_bef(l) = t_roof_inner(l)
t_sunw_inner_bef(l) = t_sunw_inner(l)
Expand Down Expand Up @@ -376,8 +380,8 @@ subroutine BuildingTemperature (bounds, num_urbanl, filter_urbanl, num_nolakec,
cp_floori(l) = cp_floor
! Intermediate calculation for concrete floor (W m-2 K-1)
cv_floori(l) = (dz_floori(l) * cp_floori(l)) / dtime
! Density of dry air at standard pressure and t_building (kg m-3)
rho_dair(l) = pstd / (rair*t_building_bef(l))
! Density of dry air at surface pressure and t_building (kg m-3)
rho_dair(l) = forc_pbot(g) / (rair*t_building_bef(l))
! Building height to building width ratio
building_hwr(l) = canyon_hwr(l)*(1._r8-wtlunit_roof(l))/wtlunit_roof(l)
end if
Expand Down
2 changes: 1 addition & 1 deletion src/fates
Submodule fates updated 61 files
+71 −0 .github/ISSUE_TEMPLATE/bug.yml
+30 −0 .github/ISSUE_TEMPLATE/feature.yml
+14 −0 .github/ISSUE_TEMPLATE/task.yml
+1 −1 CODE_OF_CONDUCT.md
+1 −0 biogeochem/CMakeLists.txt
+6 −10 biogeochem/EDCanopyStructureMod.F90
+104 −377 biogeochem/EDCohortDynamicsMod.F90
+23 −137 biogeochem/EDPatchDynamicsMod.F90
+29 −14 biogeochem/EDPhysiologyMod.F90
+4 −5 biogeochem/FatesCohortMod.F90
+41 −0 biogeochem/FatesLandUseChangeMod.F90
+304 −61 biogeochem/FatesPatchMod.F90
+19 −18 biogeochem/FatesSoilBGCFluxMod.F90
+2 −1 biogeophys/CMakeLists.txt
+5 −5 biogeophys/EDAccumulateFluxesMod.F90
+6 −5 biogeophys/EDBtranMod.F90
+4 −4 biogeophys/FatesPlantHydraulicsMod.F90
+5 −3 biogeophys/FatesPlantRespPhotosynthMod.F90
+0 −7 main/CMakeLists.txt
+8 −6 main/EDInitMod.F90
+19 −8 main/EDMainMod.F90
+61 −1 main/EDParamsMod.F90
+12 −1 main/EDPftvarcon.F90
+53 −6 main/EDTypesMod.F90
+10 −4 main/FatesGlobals.F90
+16 −21 main/FatesHistoryInterfaceMod.F90
+26 −17 main/FatesInterfaceMod.F90
+1 −1 main/FatesInterfaceTypesMod.F90
+5 −6 main/FatesInventoryInitMod.F90
+40 −5 main/FatesRestartInterfaceMod.F90
+1,853 −0 parameter_files/archive/api37.1.0_021425_params_default.cdl
+73 −0 parameter_files/archive/api37.1.0_pr1140_patch_params.xml
+42 −0 parameter_files/archive/api37.1.0_pr1262_patch_params.xml
+33 −0 parameter_files/archive/api37.1.0_pr1263_patch_params.xml
+30 −0 parameter_files/archive/api37.1.0_pr1319_patch_params.xml
+51 −11 parameter_files/fates_params_default.cdl
+45 −3 parteh/PRTGenericMod.F90
+58 −1 parteh/PRTLossFluxesMod.F90
+1 −2 radiation/CMakeLists.txt
+10 −15 radiation/FatesRadiationDriveMod.F90
+5 −0 testing/CMakeLists.txt
+24 −0 testing/functional_testing/patch/CMakeLists.txt
+52 −0 testing/functional_testing/patch/FatesTestPatch.F90
+39 −0 testing/functional_testing/patch/patch_test.py
+7 −0 testing/functional_tests.cfg
+8 −0 testing/load_functional_tests.py
+3 −13 testing/run_functional_tests.py
+3 −1 testing/testing_shr/CMakeLists.txt
+536 −0 testing/testing_shr/FatesFactoryMod.F90
+4 −1 testing/testing_shr/FatesUnitTestParamReaderMod.F90
+32 −0 testing/testing_shr/FatesUnitTestUtils.F90
+241 −0 testing/testing_shr/SyntheticPatchTypes.F90
+6 −0 testing/unit_testing/count_cohorts_test/CMakeLists.txt
+112 −0 testing/unit_testing/count_cohorts_test/test_CountCohorts.pf
+6 −0 testing/unit_testing/insert_cohort_test/CMakeLists.txt
+379 −0 testing/unit_testing/insert_cohort_test/test_InsertCohort.pf
+6 −0 testing/unit_testing/sort_cohorts_test/CMakeLists.txt
+282 −0 testing/unit_testing/sort_cohorts_test/test_SortCohorts.pf
+6 −0 testing/unit_testing/validate_cohorts_test/CMakeLists.txt
+246 −0 testing/unit_testing/validate_cohorts_test/test_ValidateCohorts.pf
+14 −0 testing/unit_tests.cfg

0 comments on commit bc3d458

Please sign in to comment.