Skip to content

Commit 01a193b

Browse files
authored
Merge pull request #1289 from peverwhee/always-calc-swnet
Fixes for failing restart tests
2 parents c40556c + 63f3f6b commit 01a193b

3 files changed

Lines changed: 71 additions & 3 deletions

File tree

cime_config/testdefs/testmods_dirs/cam/outfrq3s_cosp/user_nl_cam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ndens=1,1,1,1,1,1
33
nhtfrq=3,3,3,3,3,3
44
inithist='ENDOFRUN'
55
fexcl1='CFAD_DBZE94_CS','CLDTOT_CALCS','CLD_CAL_NOTCS','CS_MIXCERT','CS_MIXPOSS','CS_NOPRECIP','CS_PIA',
6-
'CS_RAINPOSS','CS_RAINPROB','CS_SNOWCERT','CS_SNOWPOSS'
6+
'CS_RAINPOSS','CS_RAINPROB','CS_RAINCERT','CS_SNOWCERT','CS_SNOWPOSS'

doc/ChangeLog

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,71 @@
1+
2+
===============================================================
3+
4+
Tag name: cam6_4_081
5+
Originator(s): peverwhee, cacraig
6+
Date: March 26, 2025
7+
One-line Summary: Fixes for failing restart tests
8+
Github PR URL: https://github.com/ESCOMP/CAM/pull/1289
9+
10+
Purpose of changes (include the issue number and title text for each relevant GitHub issue):
11+
- Fixes failing cosp test which was writing out a task dependent cosp variable
12+
- Always sets cam_out%netsw, not only when shortwave radiation call was made
13+
- Two restart_test have answer changes due to moving mountain update in cam6_4_078:
14+
https://github.com/ESCOMP/CAM/issues/1284 (turned out to not be due to the moving mountain update)
15+
16+
Describe any changes made to build system: N/A
17+
18+
Describe any changes made to the namelist: N/A
19+
20+
List any changes to the defaults for the boundary datasets: N/A
21+
22+
Describe any substantial timing or memory changes: N/A
23+
24+
Code reviewed by: cacraig
25+
26+
List all files eliminated: N/A
27+
28+
List all files added and what they do: N/A
29+
30+
List all existing files that have been modified, and describe the changes:
31+
M cime_config/testdefs/testmods_dirs/cam/outfrq3s_cosp/user_nl_cam
32+
- Remove task dependent variable from cosp output file
33+
34+
M src/physics/rrtmgp/radiation.F90
35+
- Always set cam_out%netsw
36+
37+
If there were any failures reported from running test_driver.sh on any test
38+
platform, and checkin with these failures has been OK'd by the gatekeeper,
39+
then copy the lines from the td.*.status files for the failed tests to the
40+
appropriate machine below. All failed tests must be justified.
41+
42+
derecho/intel/aux_cam:
43+
ERP_Ln9.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s (Overall: FAIL) details:
44+
SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h (Overall: DIFF) details:
45+
SMS_Ld1.f09_f09_mg17.FCHIST_GC.derecho_intel.cam-outfrq1d (Overall: DIFF) details:
46+
- pre-existing failures due to HEMCO not having reproducible results (issues #1018 and #856)
47+
48+
SMS_D_Ln9_P1280x1.ne0CONUSne30x8_ne0CONUSne30x8_mt12.FCHIST.derecho_intel.cam-outfrq9s (Overall: FAIL) details:
49+
- pre-existing failures due to build-namelist error requiring CLM/CTSM external update
50+
51+
ERC_D_Ln9.f19_f19_mg17.QPC6.derecho_intel.cam-outfrq3s_cosp (Overall: DIFF) details:
52+
ERP_D_Ln9.ne30pg3_ne30pg3_mt232.QPC7.derecho_intel.cam-outfrq3s_cosp (Overall: DIFF) details:
53+
- namelist had one field removed and baseline comparison said was BFB except the field lists differed (due to
54+
variable being removed from output list)
55+
56+
ERS_Ln9.ne30pg3_ne30pg3_mg17.FHISTC_WXma.derecho_intel.cam-outfrq9s (Overall: DIFF) details:
57+
- baseline change due to always setting cam_out%netsw
58+
59+
derecho/nvhpc/aux_cam: all BFB
60+
61+
izumi/nag/aux_cam:
62+
ERC_D_Ln9.f10_f10_mg37.QPC5.izumi_nag.cam-outfrq3s_cosp (Overall: DIFF) details:
63+
- namelist had one field removed and baseline comparison said was BFB except the field lists differed (due to
64+
variable being removed from output list)
65+
66+
izumi/gnu/aux_cam: all BFB
67+
68+
===============================================================
169
===============================================================
270

371
Tag name: cam6_4_080

src/physics/rrtmgp/radiation.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,8 @@ subroutine radiation_tend( &
14201420
qrs(:ncol,:) = qrs(:ncol,:) * state%pdel(:ncol,:)
14211421
qrl(:ncol,:) = qrl(:ncol,:) * state%pdel(:ncol,:)
14221422

1423+
cam_out%netsw(:ncol) = fsns(:ncol)
1424+
14231425
if (.not. present(rd_out)) then
14241426
deallocate(rd)
14251427
end if
@@ -1496,8 +1498,6 @@ subroutine set_sw_diags()
14961498
rd%fsnsc(:ncol) = fcns(:ncol,pverp) ! net sw clearsky flux at surface
14971499
rd%fsntc(:ncol) = fcns(:ncol,ktopcam) ! net sw clearsky flux at top
14981500

1499-
cam_out%netsw(:ncol) = fsns(:ncol)
1500-
15011501
! Output fluxes at 200 mb
15021502
call vertinterp(ncol, pcols, pverp, state%pint, 20000._r8, fns, rd%fsn200)
15031503
call vertinterp(ncol, pcols, pverp, state%pint, 20000._r8, fcns, rd%fsn200c)

0 commit comments

Comments
 (0)