Skip to content

Commit 449345e

Browse files
committed
Merge branch '1655-rename-gddplant2'
Fix misleading name of "gddplant" 1. Rename `gddplant_patch` to `hui_patch` (and `GDDPLANT` to `HUI`). 2. Add new variable `gddaccum_patch` (output `GDDACCUM`). Output variable `GDDPLANT` (not included by default) is now `HUI`, and new output `GDDACCUM` has been added to track _actual_ accumulation of GDDs since planting without any modifications such as occurs here: https://github.com/ESCOMP/CTSM/blob/d9ae4b48d9c55fe3c998019bcf76817da570db87/src/biogeochem/CNPhenologyMod.F90#L2044-L2046 Resolves #1655 (gddplant_patch (GDDPLANT) is misleadingly named)
2 parents 4f16caf + 556d999 commit 449345e

File tree

10 files changed

+177
-58
lines changed

10 files changed

+177
-58
lines changed

cime_config/testdefs/testmods_dirs/clm/crop/user_nl_clm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
hist_fincl1 += 'GDD0', 'GDD8', 'GDD10',
22
'GDD020', 'GDD820', 'GDD1020',
3-
'GDDPLANT', 'GDDTSOI', 'A5TMIN', 'A10TMIN'
3+
'GDDACCUM', 'GDDTSOI', 'A5TMIN', 'A10TMIN',
4+
'HUI'
45

56
! The main point of including this field is to test the SUM history field infrastructure
67
! This is in the crop testmods because this field is mainly useful in transient crop runs

doc/ChangeLog

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,78 @@
11
===============================================================
2+
Tag name: ctsm5.1.dev090
3+
Originator(s): samrabin (Sam Rabin)
4+
Date: Thu Mar 31 15:03:34 MDT 2022
5+
One-line Summary: Fix misleading name of "gddplant"
6+
7+
Purpose and description of changes
8+
----------------------------------
9+
10+
1. Rename `gddplant_patch` to `hui_patch` (and `GDDPLANT` to `HUI`).
11+
2. Add new variable `gddaccum_patch` (output `GDDACCUM`).
12+
13+
Output variable `GDDPLANT` (not included by default) is now `HUI`, and
14+
new output `GDDACCUM` has been added to track _actual_ accumulation of
15+
GDDs since planting without any modifications such as occurs here:
16+
https://github.com/ESCOMP/CTSM/blob/d9ae4b48d9c55fe3c998019bcf76817da570db87/src/biogeochem/CNPhenologyMod.F90#L2044-L2046
17+
18+
Significant changes to scientifically-supported configurations
19+
--------------------------------------------------------------
20+
21+
Does this tag change answers significantly for any of the following physics configurations?
22+
(Details of any changes will be given in the "Answer changes" section below.)
23+
24+
[Put an [X] in the box for any configuration with significant answer changes.]
25+
26+
[ ] clm5_1
27+
28+
[ ] clm5_0
29+
30+
[ ] ctsm5_0-nwp
31+
32+
[ ] clm4_5
33+
34+
35+
Bugs fixed or introduced
36+
------------------------
37+
[Remove any lines that don't apply. Remove entire section if nothing applies.]
38+
39+
Issues fixed (include CTSM Issue #):
40+
- Resolves ESCOMP/CTSM#1655 (gddplant_patch (GDDPLANT) is misleadingly
41+
named)
42+
43+
Notes of particular relevance for users
44+
---------------------------------------
45+
Changes to CTSM's user interface (e.g., new/renamed XML or namelist variables):
46+
- See above notes about changes to some output variables
47+
48+
Notes of particular relevance for developers:
49+
---------------------------------------------
50+
Changes to tests or testing:
51+
- Changed variables output in crop testmod (and any testmods that inherit
52+
from it)
53+
54+
Testing summary:
55+
----------------
56+
regular tests (aux_clm: https://github.com/ESCOMP/CTSM/wiki/System-Testing-Guide#pre-merge-system-testing):
57+
58+
cheyenne ---- PASS
59+
izumi ------- PASS
60+
61+
Answer changes
62+
--------------
63+
64+
Changes answers relative to baseline: NO
65+
66+
There are FIELDLIST diffs for cases using the crop testmod or other
67+
testmods inheriting from it, but otherwise bit-for-bit.
68+
69+
Other details
70+
-------------
71+
Pull Requests that document the changes (include PR ids):
72+
https://github.com/ESCOMP/CTSM/pull/1684
73+
74+
===============================================================
75+
===============================================================
276
Tag name: ctsm5.1.dev089
377
Originator(s): sacks (Bill Sacks)
478
Date: Thu Mar 31 11:44:12 MDT 2022

doc/ChangeSum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Tag Who Date Summary
22
============================================================================================================================
3+
ctsm5.1.dev090 samrabin 03/31/2022 Fix misleading name of "gddplant"
34
ctsm5.1.dev089 sacks 03/31/2022 For CLM45 apply peaklai to aleaf in grainfill
45
ctsm5.1.dev088 samrabin 03/28/2022 Add outputs for annual crop sowing and harvest dates
56
ctsm5.1.dev087 sacks 03/24/2022 Reduce aux_clm testing cost

src/biogeochem/CNNDynamicsMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ subroutine CNSoyfix (bounds, num_soilc, filter_soilc, num_soilp, filter_soilp, &
333333
associate( &
334334
wf => waterdiagnosticbulk_inst%wf_col , & ! Input: [real(r8) (:) ] soil water as frac. of whc for top 0.5 m
335335

336-
hui => crop_inst%gddplant_patch , & ! Input: [real(r8) (:) ] gdd since planting (gddplant)
336+
hui => crop_inst%hui_patch , & ! Input: [real(r8) (:) ] patch heat unit index (growing degree-days)
337337
croplive => crop_inst%croplive_patch , & ! Input: [logical (:) ] true if planted and not harvested
338338

339339
gddmaturity => cnveg_state_inst%gddmaturity_patch , & ! Input: [real(r8) (:) ] gdd needed to harvest

src/biogeochem/CNPhenologyMod.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ subroutine CropPhenology(num_pcropp, filter_pcropp , &
17291729
gdd1020 => temperature_inst%gdd1020_patch , & ! Input: [real(r8) (:) ] 20 yr mean of gdd10
17301730

17311731
fertnitro => crop_inst%fertnitro_patch , & ! Input: [real(r8) (:) ] fertilizer nitrogen
1732-
hui => crop_inst%gddplant_patch , & ! Input: [real(r8) (:) ] gdd since planting (gddplant)
1732+
hui => crop_inst%hui_patch , & ! Input: [real(r8) (:) ] crop patch heat unit index (growing degree-days); set to 0 at sowing and accumulated until harvest
17331733
leafout => crop_inst%gddtsoi_patch , & ! Input: [real(r8) (:) ] gdd from top soil layer temperature
17341734
harvdate => crop_inst%harvdate_patch , & ! Output: [integer (:) ] harvest date
17351735
croplive => crop_inst%croplive_patch , & ! Output: [logical (:) ] Flag, true if planted, not harvested
@@ -2016,7 +2016,7 @@ subroutine CropPhenology(num_pcropp, filter_pcropp , &
20162016

20172017
! call vernalization if winter temperate cereal planted, living, and the
20182018
! vernalization factor is not 1;
2019-
! vf affects the calculation of gddtsoi & gddplant
2019+
! vf affects the calculation of gddtsoi & hui
20202020

20212021
if (t_ref2m_min(p) < 1.e30_r8 .and. vf(p) /= 1._r8 .and. &
20222022
(ivt(p) == nwwheat .or. ivt(p) == nirrig_wwheat)) then
@@ -2350,7 +2350,7 @@ subroutine vernalization(p, &
23502350
! vernalization factor calculation
23512351
! if vf(p) = 1. then plant is fully vernalized - and thermal time
23522352
! accumulation in phase 1 will be unaffected
2353-
! refers to gddtsoi & gddplant, defined in the accumulation routines (slevis)
2353+
! refers to gddtsoi & hui, defined in the accumulation routines (slevis)
23542354
! reset vf, cumvd, and hdidx to 0 at planting of crop (slevis)
23552355

23562356
if (t_ref2m_max(p) > tfrz) then

src/biogeochem/CNRootDynMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ subroutine CNRootDyn(bounds, num_soilc, filter_soilc, num_soilp, filter_soilp, &
9797
soilpsi => soilstate_inst%soilpsi_col , & ! Input: soil water potential in each soil layer (MPa)
9898
sminn_vr => soilbiogeochem_nitrogenstate_inst%sminn_vr_col , & ! Iniput: [real(r8) (:,:)] (gN/m3) soil mineral N
9999
frootc => cnveg_carbonstate_inst%frootc_patch , & ! Input: [real(r8) (:)] (gC/m2) fine root C
100-
hui => crop_inst%gddplant_patch , & ! Input: [real(r8) (:)] =gdd since planting (gddplant)
100+
hui => crop_inst%hui_patch , & ! Input: [real(r8) (:)] crop patch heat unit index (growing degree-days); set to 0 at sowing and accumulated until harvest
101101
croplive => crop_inst%croplive_patch , & ! Input: [logical (:)] flag, true if planted, not harvested
102102
huigrain => cnveg_state_inst%huigrain_patch & ! Input: [real(r8) (:)] same to reach vegetative maturity
103103
)

0 commit comments

Comments
 (0)