Skip to content

Commit 1ff70e1

Browse files
committed
Merge remote-tracking branch 'ESCOMP/cam_development' into aqueous_chemistry_fixes
2 parents 1f43f77 + 64c9fd7 commit 1ff70e1

37 files changed

Lines changed: 1035 additions & 415 deletions

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
[submodule "atmos_phys"]
3030
path = src/atmos_phys
3131
url = https://github.com/ESCOMP/atmospheric_physics
32-
fxtag = atmos_phys0_21_000
32+
fxtag = atmos_phys0_21_002
3333
fxrequired = AlwaysRequired
3434
fxDONOTUSEurl = https://github.com/ESCOMP/atmospheric_physics
3535

@@ -72,7 +72,7 @@
7272
[submodule "hemco"]
7373
path = src/hemco
7474
url = https://github.com/ESCOMP/HEMCO_CESM.git
75-
fxtag = hemco-cesm2_2_0_hemco3_10_3
75+
fxtag = hemco-cesm2_3_0_hemco3_10_3
7676
fxrequired = AlwaysRequired
7777
fxDONOTUSEurl = https://github.com/ESCOMP/HEMCO_CESM.git
7878

bld/build-namelist

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,18 @@ if ($docosp) {
798798
add_default($nl, 'docosp', 'val'=>'.true.');
799799
}
800800

801+
# TEM diags
802+
if ($phys =~ /cam7/) {
803+
add_default($nl, 'ctem_diags_numlats');
804+
}
805+
# check for conflicting TEM diagnostics settings
806+
if ((defined $nl->get_value('ctem_diags_numlats')) and (defined $nl->get_value('phys_grid_ctem_za_nlat'))) {
807+
my $esmf_nlats = $nl->get_value('ctem_diags_numlats');
808+
my $sphr_nlats = $nl->get_value('phys_grid_ctem_za_nlat');
809+
if ($esmf_nlats>0 and $sphr_nlats>0) {
810+
die "Cannot set both Spherical Harmonics and ESMF regrid methods of TEM zonal mean diagnostics.\n";
811+
}
812+
}
801813

802814
# Constituents
803815
# ============
@@ -3123,7 +3135,6 @@ else {
31233135
# present in the namelist.
31243136
add_default($nl, 'use_hemco');
31253137
if ($nl->get_value('use_hemco') =~ m/$TRUE/io) {
3126-
add_default($nl, 'cam_physics_mesh');
31273138
add_default($nl, 'hemco_data_root');
31283139
add_default($nl, 'hemco_config_file');
31293140
add_default($nl, 'hemco_diagn_file');
@@ -3211,7 +3222,6 @@ if ($waccmx) {
32113222
add_default($nl, 'fv_high_altitude', 'val'=>'.true.');
32123223
}
32133224
if ($ionos ne 'none') {
3214-
add_default($nl, 'cam_physics_mesh');
32153225
add_default($nl, 'oplus_grid');
32163226
add_default($nl, 'edyn_grid');
32173227
}
@@ -3783,7 +3793,7 @@ if (!$simple_phys) {
37833793
add_default($nl, 'zmconv_ke_lnd');
37843794
add_default($nl, 'zmconv_num_cin');
37853795
add_default($nl, 'zmconv_dmpdz');
3786-
add_default($nl, 'zmconv_tiedke_add');
3796+
add_default($nl, 'zmconv_tiedtke_add');
37873797
add_default($nl, 'zmconv_capelmt');
37883798
add_default($nl, 'zmconv_tau');
37893799
add_default($nl, 'zmconv_parcel_hscale');

bld/configure

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -989,13 +989,6 @@ if ($rad_pkg eq 'camrt') {
989989
" with aerosol package $chem_pkg\n";
990990
}
991991
}
992-
elsif ($rad_pkg =~ m/rrtmg/) {
993-
994-
# RRTMGP not currently working with CARMA
995-
if ($rad_pkg eq 'rrtmgp' and $carma_pkg ne 'none') {
996-
die "configure ERROR: The CARMA microphysics package does not currently work with RRTMGP\n";
997-
}
998-
}
999992

1000993
$cfg_ref->set('rad', $rad_pkg);
1001994

bld/namelist_files/namelist_defaults_cam.xml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -959,18 +959,10 @@
959959
<edyn_grid hgrid="0.47x0.63">320x385</edyn_grid>
960960
<edyn_grid hgrid="ne120np4" >320x385</edyn_grid>
961961

962-
<!-- ESMF mesh files for physics decomposition -->
963-
<cam_physics_mesh hgrid="0.47x0.63">atm/cam/coords/fv0.47x0.63_esmf_c210305.nc</cam_physics_mesh>
964-
<cam_physics_mesh hgrid="0.9x1.25">atm/cam/coords/fv0.9x1.25_esmf_c210305.nc</cam_physics_mesh>
965-
<cam_physics_mesh hgrid="1.9x2.5">atm/cam/coords/fv1.9x2.5_esmf_200428.nc</cam_physics_mesh>
966-
<cam_physics_mesh hgrid="4x5">atm/cam/coords/fv4x5_esmf_c210305.nc</cam_physics_mesh>
967-
<cam_physics_mesh hgrid="ne5np4">atm/cam/coords/ne5np4_esmf_20191204.nc</cam_physics_mesh>
968-
<cam_physics_mesh hgrid="ne5np4" npg="3">atm/cam/coords/ne5np4.pg3_esmf_mesh_c210121.nc</cam_physics_mesh>
969-
<cam_physics_mesh hgrid="ne16np4">atm/cam/coords/ne16np4_esmf_c210305.nc</cam_physics_mesh>
970-
<cam_physics_mesh hgrid="ne16np4" npg="3">share/meshes/ne16pg3_ESMFmesh_cdf5_c20211018.nc</cam_physics_mesh>
971-
<cam_physics_mesh hgrid="ne30np4">atm/cam/coords/ne30np4_esmf_c210305.nc</cam_physics_mesh>
972-
<cam_physics_mesh hgrid="ne30np4" npg="3">atm/cam/coords/ne30pg3_esmf_20200428.nc</cam_physics_mesh>
973-
<cam_physics_mesh hgrid="ne120np4" npg="3">share/meshes/ne120pg3_ESMFmesh_cdf5_c20211018.nc</cam_physics_mesh>
962+
<!-- For ESMF regrid zonal-mean TEM diagnostics -->
963+
<ctem_diags_numlats>0</ctem_diags_numlats>
964+
<ctem_diags_numlats hgrid="ne16np4">90</ctem_diags_numlats>
965+
<ctem_diags_numlats hgrid="ne30np4">180</ctem_diags_numlats>
974966

975967
<!-- For scaling lightning sources of NOx -->
976968
<lght_no_prd_factor >1.00D0</lght_no_prd_factor>
@@ -2092,6 +2084,8 @@
20922084
<xs_coef_file>atm/waccm/phot/effxstex.txt</xs_coef_file>
20932085
<xs_short_file>atm/waccm/phot/xs_short_c221005mm_slh_c250930.nc</xs_short_file>
20942086
<xs_long_file >atm/waccm/phot/temp_prs_GT200nm_c221005mm_slh_c250930.nc</xs_long_file>
2087+
<xs_short_file phys="cam7">atm/waccm/phot/xs_short_c250124mm.nc</xs_short_file>
2088+
<xs_long_file phys="cam7">atm/waccm/phot/temp_prs_GT200nm_c250124mm.nc</xs_long_file>
20952089
<rsf_file >atm/waccm/phot/RSF_GT200nm_v3.0_c080811.nc</rsf_file>
20962090
<exo_coldens_file>atm/cam/chem/trop_mozart/phot/exo_coldens.nc</exo_coldens_file>
20972091

@@ -2919,7 +2913,7 @@
29192913
<zmconv_num_cin phys="cam7" > 1 </zmconv_num_cin>
29202914

29212915
<zmconv_dmpdz > -1.0E-3 </zmconv_dmpdz>
2922-
<zmconv_tiedke_add > 0.5 </zmconv_tiedke_add>
2916+
<zmconv_tiedtke_add > 0.5 </zmconv_tiedtke_add>
29232917
<zmconv_capelmt > 70.0 </zmconv_capelmt>
29242918
<zmconv_tau > 3600.0 </zmconv_tau>
29252919

bld/namelist_files/namelist_definition.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3206,7 +3206,7 @@ Tunable entrainment rate in ZM deep convection scheme in units of (m-1).
32063206
Default: -1.0e-3 m-1
32073207
</entry>
32083208

3209-
<entry id="zmconv_tiedke_add" type="real" category="conv"
3209+
<entry id="zmconv_tiedtke_add" type="real" category="conv"
32103210
group="zmconv_nl" valid_values="" >
32113211
Tunable parcel temperature perturbation in ZM deep convection scheme in units of (K).
32123212
Default: 0.5K perturbation

bld/namelist_files/use_cases/1850_trop_strat_t4s_cam7.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,6 @@
114114
'HCFC22', 'N2O', 'CFC114', 'CFC115', 'HCFC141B', 'HCFC142B', 'CH2BR2', 'CHBR3', 'H2402', 'OCS', 'SF6', 'CFC11eq'
115115
</flbc_list>
116116

117-
<!-- TEM -- REMOVE (will be default namelist parms) -->
118-
<!-- cam_physics_mesh = '$ATM_DOMAIN_MESH' -->
119-
<cam_physics_mesh hgrid="ne16np4" npg="3">share/meshes/ne16pg3_ESMFmesh_cdf5_c20211018.nc</cam_physics_mesh>
120-
<cam_physics_mesh hgrid="ne30np4" npg="3">share/meshes/ne30pg3_ESMFmesh_cdf5_c20211018.nc</cam_physics_mesh>
121-
<ctem_diags_numlats hgrid="ne16np4"> 90</ctem_diags_numlats>
122-
<ctem_diags_numlats hgrid="ne30np4">180</ctem_diags_numlats>
123-
124117
<!-- history output -->
125118

126119
<mfilt > 0, 5, 20, 40, 12, 120, 73</mfilt>

cime_config/buildnml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def buildnml(case, caseroot, compname):
4949
COMP_INTERFACE = case.get_value("COMP_INTERFACE")
5050
CALENDAR = case.get_value("CALENDAR")
5151
COMPSET = case.get_value("COMPSET")
52+
mesh_file = case.get_value("ATM_DOMAIN_MESH")
5253

5354
# The Gregorian calendar currently can't be used with spinup compsets
5455
# because CAM's stream-handling code can't handle a request for data
@@ -153,6 +154,9 @@ def buildnml(case, caseroot, compname):
153154
if ninst > 1:
154155
logger.info("%s is being used for cam_branch_file", cam_branch_file)
155156

157+
# ESMF mesh file
158+
infile_lines.append(" cam_physics_mesh = '" + mesh_file + "'")
159+
156160
# In python3 integer division returns a float value.
157161
# Adjust argument of int() to get nearest integer.
158162
dtime = int( (3600*24)/int(atm_ncpl) + .5)

cime_config/testdefs/testlist_cam.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,16 @@
324324
</options>
325325
</test>
326326

327+
<test compset="QPC7" grid="ne3pg3_ne3pg3_mt232" name="SMS_D_Ln9" testmods="cam/carma_test_tracers">
328+
<machines>
329+
<machine name="izumi" compiler="nag" category="aux_cam"/>
330+
</machines>
331+
<options>
332+
<option name="comment" >CAM7, CARMA test tracers</option>
333+
<option name="wallclock">00:30:00</option>
334+
</options>
335+
</test>
336+
327337
<test compset="FCARMA2000climo" grid="f19_f19_mg17" name="SMS_D_Ln9" testmods="cam/outfrq9s" supported="false">
328338
<machines>
329339
<machine name="derecho" compiler="intel" category="aux_cam"/>
@@ -334,6 +344,15 @@
334344
<option name="comment">CARMA trop_strat model test</option>
335345
</options>
336346
</test>
347+
<test compset="FWmaCARMAHIST" grid="f19_f19_mg17" name="SMS_D_Ln9" testmods="cam/outfrq9s" supported="false">
348+
<machines>
349+
<machine name="derecho" compiler="intel" category="carma"/>
350+
</machines>
351+
<options>
352+
<option name="wallclock">00:40:00</option>
353+
<option name="comment">CARMA WACCM trop_strat model test</option>
354+
</options>
355+
</test>
337356

338357
<test compset="FHIST_C5" grid="f10_f10_mt232" name="TMC_D_Ln9" testmods="cam/mc_ttrac">
339358
<machines>

cime_config/testdefs/testmods_dirs/cam/outfrq3s_physgrid_tem/user_nl_cam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ phys_grid_ctem_nfreq=3
66
phys_grid_ctem_zm_nbas=16
77
phys_grid_ctem_za_nlat=15
88
fincl3 = 'Uzm','Vzm','Wzm','THzm', 'VTHzm','WTHzm','UVzm','UWzm'
9+
ctem_diags_numlats=0

cime_config/testdefs/testmods_dirs/cam/outfrq9s_ctem/user_nl_cam

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ nhtfrq=9,9,9,9,9,9,9,9,9,9
44
write_nstep0=.true.
55
inithist='ENDOFRUN'
66

7-
cam_physics_mesh = '$ATM_DOMAIN_MESH'
87
ctem_diags_numlats = 90
98

109
fincl2 = 'THtem','Utem','Vtem','Wtem','VTHtem','WTHtem','UVtem', 'UWtem', 'MSKtem', 'PStem'

0 commit comments

Comments
 (0)