Skip to content

Commit 016ffe2

Browse files
authored
Merge pull request #1184 from brian-eaton/tsfc
cam6_4_044: limit t_sfc to valid temperature range
2 parents db75458 + 06d61e8 commit 016ffe2

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

doc/ChangeLog

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,78 @@
11
===============================================================
22

3+
Tag name: cam6_4_044
4+
Originator(s): eaton
5+
Date: 04 November 2024
6+
One-line Summary: limit surface T to valid range for RRTMGP
7+
Github PR URL: https://github.com/ESCOMP/CAM/pull/1184
8+
9+
Purpose of changes (include the issue number and title text for each relevant GitHub issue):
10+
11+
. Jim Edwards reported that regression testing of cesm3_0_alpha05a using
12+
the cam6_4_043 tag was encountering failures due to the following error:
13+
14+
radiation_tend: ERROR: kdist_lw%gas_optics: gas_optics(): array tsfc has values outside range
15+
16+
t_sfc is computed using input LW surface fluxes from the surface models via:
17+
18+
t_sfc = sqrt(sqrt(cam_in%lwup(:ncol)/stebol))
19+
20+
To work around this problem we have added limiters to keep t_sfc in the
21+
valid range for RRTMGP. Temperatures above the surface are already being
22+
limited to be in RRTMGP's valid range before being passed to the gas
23+
optics code.
24+
25+
Describe any changes made to build system: none
26+
27+
Describe any changes made to the namelist: none
28+
29+
List any changes to the defaults for the boundary datasets: none
30+
31+
Describe any substantial timing or memory changes: none
32+
33+
Code reviewed by: peverwhee, brianpm
34+
35+
List all files eliminated: none
36+
37+
List all files added and what they do: none
38+
39+
List all existing files that have been modified, and describe the changes:
40+
41+
src/physics/rrtmgp/rrtmgp_inputs.F90
42+
. limit t_sfc to valid temperature range
43+
44+
If there were any failures reported from running test_driver.sh on any test
45+
platform, and checkin with these failures has been OK'd by the gatekeeper,
46+
then copy the lines from the td.*.status files for the failed tests to the
47+
appropriate machine below. All failed tests must be justified.
48+
49+
derecho/intel/aux_cam:
50+
51+
ERP_Ln9.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s (Overall: FAIL)
52+
- pre-existing failure due to HEMCO not having reproducible results issues #1018 and #856
53+
54+
SMS_D_Ln9.f19_f19_mg17.FXHIST.derecho_intel.cam-outfrq9s_amie (Overall: FAIL)
55+
SMS_D_Ln9_P1280x1.ne0CONUSne30x8_ne0CONUSne30x8_mt12.FCHIST.derecho_intel.cam-outfrq9s (Overall: FAIL)
56+
- pre-existing failures due to build-namelist error requiring CLM/CTSM external update.
57+
58+
derecho/nvhpc/aux_cam: All PASS
59+
60+
izumi/nag/aux_cam:
61+
62+
DAE.f45_f45_mg37.FHS94.izumi_nag.cam-dae (Overall: FAIL) details:
63+
- pre-existing failure -- issue #670
64+
65+
izumi/gnu/aux_cam: All PASS
66+
67+
CAM tag used for the baseline comparison tests if different than previous
68+
tag: cam6_4_043_newnodes_gnu and cam6_4_043_newnodes_nag on izumi
69+
- baselines changed due to node updates between cam6_4_043 and cam6_4_044
70+
71+
Summarize any changes to answers: BFB
72+
73+
===============================================================
74+
===============================================================
75+
376
Tag name: cam6_4_043
477
Originator(s): eaton
578
Date: 25 Oct 2024

src/physics/rrtmgp/rrtmgp_inputs.F90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ subroutine rrtmgp_set_state( &
178178
tref_max = kdist_sw%get_temp_max()
179179
t_rad = merge(t_rad, tref_min, t_rad > tref_min)
180180
t_rad = merge(t_rad, tref_max, t_rad < tref_max)
181+
t_sfc = merge(t_sfc, tref_min, t_sfc > tref_min)
182+
t_sfc = merge(t_sfc, tref_max, t_sfc < tref_max)
181183

182184
! Construct arrays containing only daylight columns
183185
do i = 1, nday

0 commit comments

Comments
 (0)