Skip to content

Commit e9773d8

Browse files
committed
Merge remote-tracking branch 'upstream/cam_development' into CESM-GC_rebased_on_cam6_0_034
2 parents 28412bf + 11900b3 commit e9773d8

21 files changed

+1025
-8790
lines changed

Externals_CAM.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tag = ALI_ARMS_v1.0.1
5050
required = True
5151

5252
[atmos_phys]
53-
tag = atmos_phys0_01_000
53+
tag = atmos_phys0_02_000
5454
protocol = git
5555
repo_url = https://github.com/ESCOMP/atmospheric_physics
5656
required = True

bld/build-namelist

-1
Original file line numberDiff line numberDiff line change
@@ -3582,7 +3582,6 @@ if (!$simple_phys) {
35823582
add_default($nl, 'zmconv_ke');
35833583
add_default($nl, 'zmconv_ke_lnd');
35843584
add_default($nl, 'zmconv_org');
3585-
add_default($nl, 'zmconv_microp');
35863585
add_default($nl, 'zmconv_num_cin');
35873586
add_default($nl, 'zmconv_dmpdz');
35883587
add_default($nl, 'zmconv_tiedke_add');

bld/configure

+3
Original file line numberDiff line numberDiff line change
@@ -2275,6 +2275,9 @@ sub write_filepath
22752275
# in the list of filepaths.
22762276
print $fh "$camsrcdir/src/physics/cam\n";
22772277

2278+
#Add the CCPP'ized subdirectories
2279+
print $fh "$camsrcdir/src/atmos_phys/zm\n";
2280+
22782281
# Dynamics package and test utilities
22792282
print $fh "$camsrcdir/src/dynamics/$dyn\n";
22802283
if($dyn eq 'se') {

bld/namelist_files/namelist_defaults_cam.xml

-1
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,6 @@
28022802
<zmconv_org > .false. </zmconv_org>
28032803
<zmconv_org zmconv_org="1" > .true. </zmconv_org>
28042804

2805-
<zmconv_microp > .false. </zmconv_microp>
28062805
<zmconv_num_cin > 5 </zmconv_num_cin>
28072806
<zmconv_num_cin phys="cam6" > 1 </zmconv_num_cin>
28082807
<zmconv_num_cin phys="cam_dev" > 1 </zmconv_num_cin>

bld/namelist_files/namelist_definition.xml

-6
Original file line numberDiff line numberDiff line change
@@ -3266,12 +3266,6 @@ if -zmconv_org is set in configure.
32663266
Default: .false., unless -zmconv_org set in configure
32673267
</entry>
32683268

3269-
<entry id="zmconv_microp" type="logical" category="conv"
3270-
group="zmconv_nl" valid_values="" >
3271-
Turn on convective microphysics
3272-
Default: .false.
3273-
</entry>
3274-
32753269
<entry id="zmconv_num_cin" type="integer" category="conv"
32763270
group="zmconv_nl" valid_values="" >
32773271
The number of negative buoyancy regions that are allowed before the convection top and CAPE calculations are completed.

cime_config/testdefs/testlist_cam.xml

-20
Original file line numberDiff line numberDiff line change
@@ -345,16 +345,6 @@
345345
<option name="wallclock">00:30:00</option>
346346
</options>
347347
</test>
348-
<!-- 112 tsm, ter, tbl -->
349-
<test compset="QPC3" grid="T5_T5_mg37" name="ERC_D_Ln9_Vnuopc" testmods="cam/outfrq3s_usecase">
350-
<machines>
351-
<machine name="izumi" compiler="gnu" category="aux_cam"/>
352-
</machines>
353-
<options>
354-
<option name="comment" >112 tsm, ter</option>
355-
<option name="wallclock">00:30:00</option>
356-
</options>
357-
</test>
358348
<!-- 113 tsm, ter, T8 -->
359349
<test compset="QPC4" grid="T5_T5_mg37" name="ERC_D_Ln9_Vnuopc" testmods="cam/outfrq3s_usecase">
360350
<machines>
@@ -535,16 +525,6 @@
535525
<option name="wallclock">00:30:00</option>
536526
</options>
537527
</test>
538-
<!-- 367 -->
539-
<test compset="QPC6" grid="f10_f10_mg37" name="ERC_D_Ln9_Vnuopc" testmods="cam/outfrq3s_convmic">
540-
<machines>
541-
<machine name="izumi" compiler="nag" category="aux_cam"/>
542-
</machines>
543-
<options>
544-
<option name="comment" >367 tsm, ter</option>
545-
<option name="wallclock">00:30:00</option>
546-
</options>
547-
</test>
548528
<!-- 368 -->
549529
<test compset="QPC6" grid="f10_f10_mg37" name="ERC_D_Ln9_Vnuopc" testmods="cam/outfrq3s">
550530
<machines>

cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/shell_commands

-4
This file was deleted.

cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/user_nl_cam

-6
This file was deleted.

cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/user_nl_clm

-27
This file was deleted.

cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/user_nl_cpl

-2
This file was deleted.

doc/ChangeLog

+89
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,94 @@
11
===============================================================
22

3+
Tag name: cam6_3_146
4+
Originator(s): cacraig
5+
Date: Jan 23, 2024
6+
One-line Summary: ZM clean up in preparation for using via CCPP and remove zmconv_microp feature
7+
Github PR URL: https://github.com/ESCOMP/CAM/pull/890
8+
9+
Purpose of changes (include the issue number and title text for each relevant GitHub issue):
10+
- Work to make ZM compatible with CCPP conversion process
11+
- Removed CAM3 switch from ZM in move to no longer support CAM3
12+
- Remove microphysics embedded in ZM: https://github.com/ESCOMP/CAM/issues/889
13+
14+
Describe any changes made to build system: N/A
15+
16+
Describe any changes made to the namelist:
17+
- removed zmconv_microp namelist
18+
19+
List any changes to the defaults for the boundary datasets: N/A
20+
21+
Describe any substantial timing or memory changes: N/A
22+
23+
Code reviewed by: nusbaume, mwaxmonsky
24+
25+
List all files eliminated:
26+
D src/physics/cam/zm_microphysics.F90
27+
- removed zmconv_microp capability as it is not used
28+
29+
D src/physics/cam/zm_conv.F90
30+
- moved ZM to ESCOMP/atcmospheric_physics and broke into separate modules
31+
32+
D cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/shell_commands
33+
D cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/user_nl_cam
34+
D cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/user_nl_clm
35+
D cime_config/testdefs/testmods_dirs/cam/outfrq3s_convmic/user_nl_cpl
36+
- removed test which tested zmconv_microp
37+
38+
List all files added and what they do: N/A
39+
40+
List all existing files that have been modified, and describe the changes:
41+
M Externals_CAM.cfg
42+
- updated ESCOMP/atmospheric_physics to bring in tag with ZM
43+
44+
M bld/build-namelist
45+
M bld/namelist_files/namelist_defaults_cam.xml
46+
M bld/namelist_files/namelist_definition.xml
47+
M src/physics/cam/clubb_intr.F90
48+
- removed zmconv_microp namelist and associated code
49+
50+
M bld/configure
51+
- add location for src/atmos_phys/zm
52+
53+
M cime_config/testdefs/testlist_cam.xml
54+
- removed test which tested zmconv_microp and CAM3
55+
56+
M src/physics/cam/macrop_driver.F90
57+
- removed zmconv_microp namelist and associated code
58+
- Changes needed to support ZM no longer having pcols dimension
59+
60+
M src/chemistry/modal_aero/modal_aero_convproc.F90
61+
M src/physics/cam/cloud_fraction.F90
62+
M src/physics/cam/convect_shallow.F90
63+
M src/physics/cam/rk_stratiform.F90
64+
M src/physics/spcam/crmclouds_camaerosols.F90
65+
- Changes needed to support ZM no longer having pcols dimension
66+
67+
M src/physics/cam/zm_conv_intr.F90
68+
- Changes to prepare this routine to support CCPP conversion
69+
- Pass in variables which were being "use"d in ZM previously
70+
- Only pass :ncol sections of arrays since pcols has been removed from ZM
71+
- removed zmconv_microp namelist and associated code
72+
73+
If there were any failures reported from running test_driver.sh on any test
74+
platform, and checkin with these failures has been OK'd by the gatekeeper,
75+
then copy the lines from the td.*.status files for the failed tests to the
76+
appropriate machine below. All failed tests must be justified.
77+
78+
derecho/intel/aux_cam: all BFB except:
79+
ERP_Ln9_Vnuopc.C96_C96_mg17.F2000climo.derecho_intel.cam-outfrq9s_mg3 (Overall: PEND) details:
80+
ERP_Ln9_Vnuopc.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq9s (Overall: FAIL) details:
81+
- preexisting failures
82+
83+
izumi/nag/aux_cam: all BFB except:
84+
DAE_Vnuopc.f45_f45_mg37.FHS94.izumi_nag.cam-dae (Overall: FAIL) details:
85+
- preexisting failure
86+
87+
izumi/gnu/aux_cam: all BFB
88+
89+
===============================================================
90+
===============================================================
91+
392
Tag name: cam6_3_145
493
Originator(s): katetc, cacraigucar, andrewgettelman
594
Date: 05 Jan 2024

src/chemistry/modal_aero/modal_aero_convproc.F90

+3-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ subroutine ma_convproc_dp_intr( &
532532

533533
integer :: i
534534
integer :: itmpveca(pcols)
535-
integer :: l, lchnk, lun
535+
integer :: l, lchnk, lun, ncol
536536
integer :: nstep
537537

538538
real(r8) :: dpdry(pcols,pver) ! layer delta-p-dry (mb)
@@ -565,6 +565,7 @@ subroutine ma_convproc_dp_intr( &
565565
! Initialize
566566

567567
lchnk = state%lchnk
568+
ncol = state%ncol
568569
nstep = get_nstep()
569570
lun = iulog
570571

@@ -587,6 +588,7 @@ subroutine ma_convproc_dp_intr( &
587588
call pbuf_get_field(pbuf, zm_ideep_idx, ideep)
588589

589590
lengath = count(ideep > 0)
591+
if (lengath > ncol) lengath = ncol ! should not happen, but force it to not be larger than ncol for safety sake
590592

591593
fracice(:,:) = 0.0_r8
592594

src/physics/cam/cloud_fraction.F90

+3-3
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,10 @@ subroutine cldfrc_fice(ncol, t, fice, fsnow)
751751

752752
! Arguments
753753
integer, intent(in) :: ncol ! number of active columns
754-
real(r8), intent(in) :: t(pcols,pver) ! temperature
754+
real(r8), intent(in) :: t(:,:) ! temperature
755755

756-
real(r8), intent(out) :: fice(pcols,pver) ! Fractional ice content within cloud
757-
real(r8), intent(out) :: fsnow(pcols,pver) ! Fractional snow content for convection
756+
real(r8), intent(out) :: fice(:,:) ! Fractional ice content within cloud
757+
real(r8), intent(out) :: fsnow(:,:) ! Fractional snow content for convection
758758

759759
! Local variables
760760
real(r8) :: tmax_fice ! max temperature for cloud ice formation

0 commit comments

Comments
 (0)