Skip to content

Commit 397daa0

Browse files
authored
Merge pull request #1639 from jimmielin/hplin/clubb_heap_fix
cam6_4_194: Fix CLUBB pbuf initialization
2 parents 26236ea + babd457 commit 397daa0

2 files changed

Lines changed: 73 additions & 14 deletions

File tree

doc/ChangeLog

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,68 @@
1+
===============================================================
2+
3+
Tag name: cam6_4_194
4+
Originator(s): jimmielin
5+
Date: Aug 7, 2026
6+
One-line Summary: Fix CLUBB pbuf initialization
7+
Github PR URL: https://github.com/ESCOMP/CAM/pull/1639
8+
9+
Purpose of changes (include the issue number and title text for each relevant GitHub issue):
10+
- Closes #1638 - Crash in ERP_D_Ln9.ne30pg3_ne30pg3_mt232.F1850C_MTso.derecho_intel.cam-outfrq9s after CESM alpha09b
11+
12+
Describe any changes made to build system: N/A
13+
14+
Describe any changes made to the namelist: N/A
15+
16+
List any changes to the defaults for the boundary datasets: N/A
17+
18+
Describe any substantial timing or memory changes: N/A
19+
20+
Code reviewed by: cacraig
21+
22+
List all files eliminated: N/A
23+
24+
List all files added and what they do: N/A
25+
26+
List all existing files that have been modified, and describe the changes:
27+
M src/physics/cam/clubb_intr.F90
28+
- move physpkg-level pbuf field initialization to always instead of first timestep.
29+
this was causing unphysical values to be in the pbuf when restarting the model causing
30+
a crash in the gw code which was computing upwp_clubb**2+vpwp_clubb**2
31+
32+
If there were any failures reported from running test_driver.sh on any test
33+
platform, and checkin with these failures has been OK'd by the gatekeeper,
34+
then copy the lines from the td.*.status files for the failed tests to the
35+
appropriate machine below. All failed tests must be justified.
36+
37+
derecho/intel/aux_cam:
38+
ERP_D_Ln9.ne30pg3_ne30pg3_mt232.F1850C_MTso.derecho_intel.cam-outfrq9s (Overall: DIFF) details:
39+
- baseline was missing since the test started to crash in cam6_4_193 after the externals update.
40+
- manually comparing against the baseline in cam6_4_192 showed expected answer differences due to
41+
updated externals.
42+
43+
SMS_D_Ln9_P1536x1.ne0CONUSne30x8_ne0CONUSne30x8_mt12.FCHIST.derecho_intel.cam-outfrq9s (Overall: DIFF) details:
44+
FAIL SMS_D_Ln9_P1536x1.ne0CONUSne30x8_ne0CONUSne30x8_mt12.FCHIST.derecho_intel.cam-outfrq9s BASELINE
45+
/glade/campaign/cesm/community/amwg/cam_baselines/cam6_4_193_intel: ERROR BFAIL some baseline files were missing
46+
- baseline was missing since cam6_4_193 ran into the intermittent failure:
47+
intermittent failure in CTSM code (lnd_set_decomp_and_domain.F90)
48+
49+
derecho/nvhpc/aux_cam:
50+
ERS_Ln9.ne30pg3_ne30pg3_mt232.FHISTC_LTso.derecho_nvhpc.cam-outfrq9s_gpu_default (Overall: FAIL) details:
51+
FAIL ERS_Ln9.ne30pg3_ne30pg3_mt232.FHISTC_LTso.derecho_nvhpc.cam-outfrq9s_gpu_default MODEL_BUILD
52+
- pre-existing failure from cam6_4_193 previously reported via email.
53+
54+
izumi/nag/aux_cam:
55+
ERC_D_Ln9.f10_f10_mt232.FHIST_C5.izumi_nag.cam-outfrq3s_subcol (Overall: FAIL) details:
56+
FAIL ERC_D_Ln9.f10_f10_mt232.FHIST_C5.izumi_nag.cam-outfrq3s_subcol COMPARE_base_rest
57+
- pre-existing failure -- see https://github.com/ESCOMP/CAM/issues/1514
58+
59+
izumi/gnu/aux_cam: All PASS
160

261
===============================================================
362

63+
464
Tag name: cam6_4_193
5-
Originator(s):cacraigucar
65+
Originator(s): cacraigucar
666
Date: August 6, 2026
767
One-line Summary: Update externals to match cesm3_0_beta09
868
Github PR URL: https://github.com/ESCOMP/CAM/pull/1637

src/physics/cam/clubb_intr.F90

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,22 +2026,21 @@ subroutine clubb_ini_cam(pbuf_ini)
20262026
call pbuf_set_field(pbuf_ini, pdf_zm_varnce_w_2_idx, 0.0_r8)
20272027
call pbuf_set_field(pbuf_ini, pdf_zm_mixt_frac_idx, 0.0_r8)
20282028

2029-
call pbuf_set_field(pbuf_ini, ttend_clubb_idx, 0.0_r8)
2030-
call pbuf_set_field(pbuf_ini, upwp_clubb_gw_idx, 0.0_r8)
2031-
call pbuf_set_field(pbuf_ini, vpwp_clubb_gw_idx, 0.0_r8)
2032-
call pbuf_set_field(pbuf_ini, thlp2_clubb_gw_idx, 0.0_r8)
2033-
call pbuf_set_field(pbuf_ini, wpthlp_clubb_gw_idx, 0.0_r8)
2034-
2035-
call pbuf_set_field(pbuf_ini, ttend_clubb_mc_idx, 0.0_r8)
2036-
call pbuf_set_field(pbuf_ini, upwp_clubb_gw_mc_idx, 0.0_r8)
2037-
call pbuf_set_field(pbuf_ini, vpwp_clubb_gw_mc_idx, 0.0_r8)
2038-
call pbuf_set_field(pbuf_ini, thlp2_clubb_gw_mc_idx, 0.0_r8)
2039-
call pbuf_set_field(pbuf_ini, wpthlp_clubb_gw_mc_idx, 0.0_r8)
2040-
20412029
endif
20422030

20432031
! The following is physpkg, so it needs to be initialized every time
2044-
call pbuf_set_field(pbuf_ini, fice_idx, 0.0_r8)
2032+
call pbuf_set_field(pbuf_ini, fice_idx, 0.0_r8)
2033+
call pbuf_set_field(pbuf_ini, ttend_clubb_idx, 0.0_r8)
2034+
call pbuf_set_field(pbuf_ini, upwp_clubb_gw_idx, 0.0_r8)
2035+
call pbuf_set_field(pbuf_ini, vpwp_clubb_gw_idx, 0.0_r8)
2036+
call pbuf_set_field(pbuf_ini, thlp2_clubb_gw_idx, 0.0_r8)
2037+
call pbuf_set_field(pbuf_ini, wpthlp_clubb_gw_idx, 0.0_r8)
2038+
2039+
call pbuf_set_field(pbuf_ini, ttend_clubb_mc_idx, 0.0_r8)
2040+
call pbuf_set_field(pbuf_ini, upwp_clubb_gw_mc_idx, 0.0_r8)
2041+
call pbuf_set_field(pbuf_ini, vpwp_clubb_gw_mc_idx, 0.0_r8)
2042+
call pbuf_set_field(pbuf_ini, thlp2_clubb_gw_mc_idx, 0.0_r8)
2043+
call pbuf_set_field(pbuf_ini, wpthlp_clubb_gw_mc_idx, 0.0_r8)
20452044

20462045
! --------------- !
20472046
! End !

0 commit comments

Comments
 (0)