Skip to content

Commit f8372fb

Browse files
committed
merge to head of cam_development; update to latest atmos phys hash
2 parents daa6037 + a239db6 commit f8372fb

58 files changed

Lines changed: 920 additions & 1185 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
fxtag = carma4_09
1313
fxDONOTUSEurl = https://github.com/ESCOMP/CARMA_base.git
1414

15-
[submodule "pumas"]
16-
path = src/physics/pumas
17-
url = https://github.com/ESCOMP/PUMAS
18-
fxrequired = AlwaysRequired
19-
fxtag = pumas_cam-release_v1.39
20-
fxDONOTUSEurl = https://github.com/ESCOMP/PUMAS
21-
2215
[submodule "pumas-frozen"]
2316
path = src/physics/pumas-frozen
2417
url = https://github.com/ESCOMP/PUMAS
@@ -36,10 +29,18 @@
3629
[submodule "atmos_phys"]
3730
path = src/atmos_phys
3831
url = https://github.com/peverwhee/atmospheric_physics
39-
fxtag = 9aac55720342a3b1ca438fe012531140b696a587
32+
fxtag = 621f46c1378141bc2d403af693b6c04d2f862dcf
4033
fxrequired = AlwaysRequired
4134
fxDONOTUSEurl = https://github.com/ESCOMP/atmospheric_physics
4235

36+
[submodule "cam-sima"]
37+
path = src/utils/cam-sima
38+
url = https://github.com/ESCOMP/CAM-SIMA.git
39+
fxrequired = AlwaysRequired
40+
fxsparse = ../.sima_phys_utils_sparse_checkout
41+
fxtag = sima0_07_000
42+
fxDONOTUSEurl = https://github.com/ESCOMP/CAM-SIMA.git
43+
4344
[submodule "fv3"]
4445
path = src/dynamics/fv3
4546
url = https://github.com/ESCOMP/CAM_FV3_interface.git

bld/build-namelist

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ elsif ($rad_pkg =~ m/rrtmgp/) {
739739
my $abs_path = quote_string(set_abs_filepath($rel_path, $cam_dir));
740740
$nl->set_variable_value('radiation_nl', 'rrtmgp_coefs_sw_file', $abs_path);
741741

742-
add_default($nl, 'p_top_for_rrtmgp');
742+
add_default($nl, 'p_top_for_equil_rad');
743743

744744
}
745745

@@ -786,7 +786,8 @@ elsif (!$simple_phys) {
786786

787787

788788
# COSP simulator
789-
if ($cfg->get('cosp')) {
789+
my $docosp = $cfg->get('cosp');
790+
if ($docosp) {
790791
add_default($nl, 'docosp', 'val'=>'.true.');
791792
}
792793

@@ -3338,7 +3339,7 @@ if ($cfg->get('microphys') =~ /^mg/) {
33383339
add_default($nl, 'micro_mg_accre_sees_auto');
33393340
add_default($nl, 'micro_mg_vtrms_factor');
33403341
add_default($nl, 'micro_mg_implicit_fall');
3341-
add_default($nl, 'pumas_stochastic_tau_kernel_filename', 'val'=>"$cfgdir/../src/physics/pumas/KBARF_tau_kernel.dat");
3342+
add_default($nl, 'pumas_stochastic_tau_kernel_filename', 'val'=>"$cfgdir/../src/atmos_phys/schemes/pumas/pumas/KBARF_tau_kernel.dat");
33423343

33433344
#set path for stochastic_tau_kernel_filename
33443345
my $cam_dir = $cfg->get('cam_dir');
@@ -4422,18 +4423,32 @@ my $interpolate_output = $nl->get_value('interpolate_output');
44224423
my @interp_output = split /,/, $interpolate_output;
44234424
for my $i (0 .. $#interp_output) {
44244425
if ($interp_output[$i] =~ /$TRUE/io) {
4426+
44254427
# Currently, interpolated output is only supported for the SE dycore
44264428
if ( ! ($dyn =~ /se/) ) {
44274429
die "$ProgName - ERROR: interpolate_output is not supported for $dyn dycore";
44284430
}
4431+
44294432
# Currently, interpolated output is incompatible with regional output
44304433
my $region = $nl->get_value('fincl${i}lonlat');
44314434
if (defined $region) {
44324435
die "$ProgName - ERROR: interpolate_output is currently incompatible with regional output (e.g., fincl${i}lonlat)";
44334436
}
4437+
44344438
}
44354439
}
44364440

4441+
# Currently, interpolated output does not work with the COSP fields that use
4442+
# more than 1 mdims.
4443+
my $cosp_histfile_num = $nl->get_value('cosp_histfile_num');
4444+
if (!defined $cosp_histfile_num) {$cosp_histfile_num = 1;}
4445+
if ($interp_output[$cosp_histfile_num-1] =~ /$TRUE/io) {
4446+
die "$ProgName - ERROR: interpolate_output does not work with COSP. Use cosp_histfile_num\n" .
4447+
" to direct COSP output to a history file that is not interpolated. COSP output is\n" .
4448+
" currently on cosp_histfile_num=$cosp_histfile_num which contains interpolated output.";
4449+
}
4450+
4451+
44374452
my $offline_drv = $cfg->get('offline_drv');
44384453
if ($offline_drv ne 'stub') {
44394454

bld/configure

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,7 @@ sub write_filepath
21612161
}
21622162

21632163
if ($phys_pkg eq 'cam7') {
2164-
print $fh "$camsrcdir/src/physics/pumas\n";
2164+
print $fh "$camsrcdir/src/atmos_phys/schemes/pumas/pumas\n";
21652165
} else {
21662166
print $fh "$camsrcdir/src/physics/pumas-frozen\n";
21672167
}
@@ -2172,6 +2172,7 @@ sub write_filepath
21722172
# in the list of filepaths.
21732173
print $fh "$camsrcdir/src/physics/cam\n";
21742174
print $fh "$camsrcdir/src/atmos_phys/to_be_ccppized\n";
2175+
print $fh "$camsrcdir/src/atmos_phys/to_be_ccppized/radiation_utils\n";
21752176
print $fh "$camsrcdir/src/atmos_phys/phys_utils\n";
21762177

21772178
# Add the CCPP'ized subdirectories
@@ -2208,6 +2209,9 @@ sub write_filepath
22082209
print $fh "$camsrcdir/src/utils\n";
22092210
print $fh "$camsrcdir/src/utils/cam_ccpp\n";
22102211

2212+
# Routines from CAM-SIMA
2213+
print $fh "$camsrcdir/src/utils/cam-sima/src/physics/utils\n";
2214+
22112215
$fh->close;
22122216
}
22132217

bld/namelist_files/namelist_defaults_cam.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,11 @@
575575
<rrtmgp_coefs_lw_file>src/physics/rrtmgp/data/rrtmgp-gas-lw-g128.nc</rrtmgp_coefs_lw_file>
576576
<rrtmgp_coefs_sw_file>src/physics/rrtmgp/data/rrtmgp-gas-sw-g112.nc</rrtmgp_coefs_sw_file>
577577

578-
<p_top_for_rrtmgp> 10.D0 </p_top_for_rrtmgp>
579-
<p_top_for_rrtmgp waccmx="1" > 1.D0 </p_top_for_rrtmgp>
580-
<p_top_for_rrtmgp waccm_phys="1" > 1.D0 </p_top_for_rrtmgp>
578+
<!-- Pressure top for blending region for radiation heating -->
579+
<p_top_for_equil_rad> 0.D0 </p_top_for_equil_rad>
580+
<p_top_for_equil_rad waccmx="1" > 1.D0 </p_top_for_equil_rad>
581+
<p_top_for_equil_rad waccm_phys="1" > 1.D0 </p_top_for_equil_rad>
582+
<p_top_for_equil_rad rad="rrtmgp"> 2.D0 </p_top_for_equil_rad>
581583

582584
<!-- CAM-RT absorptivity/emissivity lookup table -->
583585
<absems_data rad="camrt">atm/cam/rad/abs_ems_factors_fastvx.c030508.nc</absems_data>

bld/namelist_files/namelist_definition.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5771,11 +5771,12 @@ Calculate radiative effect of graupel/hail (using snow optics)
57715771
Default: FALSE
57725772
</entry>
57735773

5774-
<entry id="p_top_for_rrtmgp" type="real" category="radiation"
5775-
group="radiation_nl" valid_values="" >
5776-
Top pressure level for RRTMGP
5774+
<entry id="p_top_for_equil_rad" type="real" category="radiation"
5775+
group="radheat_nl" valid_values="" >
5776+
Top pressure level for non-LTE blending region
57775777
Default: 1.0 for WACCM/WACCMX
5778-
10. for all other CAM runs
5778+
2. for all other RRTMGP runs
5779+
0.0 for all other runs
57795780
</entry>
57805781

57815782
<entry id="use_rad_dt_cosz" type="logical" category="radiation"

cime_config/config_component.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
===============
1010
-->
1111
<desc atm="CAM70[%LT][%MT][%WA][%WX][%CSO][%CT1S][%CT4S][%CT0MA][%CT1MA][%CT4MA][%PORT]" >CAM cam7 physics:</desc>
12-
<desc atm="CAM60[%1PCT][%4xCO2][%CARMATS][%CARMAWM][%CT1S][%CT2S][%CFIRE][%CVBSX][%NUDG][%PORT][%RCO2][%SCAM][%SDYN][%WCCM][%WCMD][%WCSC][%WCTS][%WXIE][%WXIED][%HEMCO][%GEOSCHEM][%SCAMARM95][%SCAMARM97][%SCAMATEX][%SCAMBOMEX][%SCAMCGILSS11][%SCAMCGILSS12][%SCAMCGILSS6][%SCAMDYCOMSRF01][%SCAMDYCOMSRF02][%SCAMGATE3][%SCAMMPACE][%SCAMRICO][%SCAMSPARTICUS][%SCAMTOGA2][%SCAMTWP06][%SCAMCAMFRC]" >CAM cam6 physics:</desc>
13-
<desc atm="CAM50[%CT1S][%CLB][%PORT][%RCO2][%MAM7][%SCAM][%SDYN][%WCSC][%WCTS][%SCAMARM95][%SCAMARM97][%SCAMATEX][%SCAMBOMEX][%SCAMCGILSS11][%SCAMCGILSS12][%SCAMCGILSS6][%SCAMDYCOMSRF01][%SCAMDYCOMSRF02][%SCAMGATE3][%SCAMMPACE][%SCAMRICO][%SCAMSPARTICUS][%SCAMTOGA2][%SCAMTWP06][%SCAMCAMFRC]" >CAM cam5 physics:</desc>
14-
<desc atm="CAM40[%PORT][%RCO2][%SCAM][%SDYN][%TMOZ][%WX][%WXIE][%WXIED][%WCCM][%WCMD][%SCAMARM95][%SCAMARM97][%SCAMATEX][%SCAMBOMEX][%SCAMCGILSS11][%SCAMCGILSS12][%SCAMCGILSS6][%SCAMDYCOMSRF01][%SCAMDYCOMSRF02][%SCAMGATE3][%SCAMMPACE][%SCAMRICO][%SCAMSPARTICUS][%SCAMTOGA2][%SCAMTWP06][%SCAMCAMFRC]" >CAM cam4 physics:</desc>
15-
<desc atm="CAM[%ADIAB][%TJ16][%GRAYRAD][%HS94][%KESSLER][%RCO2]" >CAM simplified and non-versioned physics :</desc>
12+
<desc atm="CAM60[%1PCT][%4xCO2][%CARMATS][%CARMAWM][%CT1S][%CT2S][%CFIRE][%CVBSX][%NUDG][%PORT][%SCAM][%SDYN][%WCCM][%WCMD][%WCSC][%WCTS][%WXIE][%WXIED][%HEMCO][%GEOSCHEM][%SCAMARM95][%SCAMARM97][%SCAMATEX][%SCAMBOMEX][%SCAMCGILSS11][%SCAMCGILSS12][%SCAMCGILSS6][%SCAMDYCOMSRF01][%SCAMDYCOMSRF02][%SCAMGATE3][%SCAMMPACE][%SCAMRICO][%SCAMSPARTICUS][%SCAMTOGA2][%SCAMTWP06][%SCAMCAMFRC]" >CAM cam6 physics:</desc>
13+
<desc atm="CAM50[%CT1S][%PORT][%SCAM][%SDYN][%WCSC][%WCTS][%SCAMARM95][%SCAMARM97][%SCAMATEX][%SCAMBOMEX][%SCAMCGILSS11][%SCAMCGILSS12][%SCAMCGILSS6][%SCAMDYCOMSRF01][%SCAMDYCOMSRF02][%SCAMGATE3][%SCAMMPACE][%SCAMRICO][%SCAMSPARTICUS][%SCAMTOGA2][%SCAMTWP06][%SCAMCAMFRC]" >CAM cam5 physics:</desc>
14+
<desc atm="CAM40[%PORT][%SCAM][%SDYN][%TMOZ][%WX][%WXIE][%WXIED][%WCCM][%WCMD][%SCAMARM95][%SCAMARM97][%SCAMATEX][%SCAMBOMEX][%SCAMCGILSS11][%SCAMCGILSS12][%SCAMCGILSS6][%SCAMDYCOMSRF01][%SCAMDYCOMSRF02][%SCAMGATE3][%SCAMMPACE][%SCAMRICO][%SCAMSPARTICUS][%SCAMTOGA2][%SCAMTWP06][%SCAMCAMFRC]" >CAM cam4 physics:</desc>
15+
<desc atm="CAM[%ADIAB][%TJ16][%GRAYRAD][%HS94][%KESSLER]" >CAM simplified and non-versioned physics :</desc>
1616

1717
<!--
1818
===============
@@ -44,14 +44,11 @@
4444
<desc option="CSO" >Specified oxidants chemistiry </desc>
4545
<desc option="GEOSCHEM" >GEOS-Chem troposphere/stratosphere chemistry :</desc>
4646
<desc option="CFIRE" >CAM-Chem troposphere/stratosphere chem with simplified volatility basis set SOA scheme and fire emissons :</desc>
47-
<desc option="CLB" >CAM CLUBB - turned on by default in CAM60:</desc>
4847
<desc option="CVBSX" >CAM-Chem troposphere/stratosphere chem with extended volatility basis set SOA scheme and modal aersols :</desc>
4948
<desc option="LT" >CAM low top model </desc>
5049
<desc option="WA" >WACCM model </desc>
5150
<desc option="WX" >WACCMX extended model </desc>
52-
<desc option="MAM7" >Modal Aerosol Model composed of 7 modes: </desc>
5351
<desc option="MT" >CAM mid top model </desc>
54-
<desc option="RCO2" >CAM CO2 ramp: </desc>
5552
<desc option="TMOZ" >CAM tropospheric chemistry with bulk aerosols:</desc>
5653

5754
<!--
@@ -138,7 +135,6 @@
138135
<value compset="_CAM.*(%CT1S|%CFIRE)">-chem trop_strat_mam5_vbs</value>
139136
<value compset="_CAM60.*%(GEOSCHEM)">-chem geoschem_mam4</value>
140137

141-
<value compset="%MAM7">-chem trop_mam7</value>
142138
<value compset="CAM60%CARMATS">-chem trop_strat_noaero -carma trop_strat_soa5</value>
143139
<value compset="CAM60%CARMAWM">-chem waccm_ma_noaero -carma trop_strat_soa1</value>
144140
<value compset="CAM60%CVBSX">-chem trop_strat_mam5_vbsext</value>
@@ -149,7 +145,6 @@
149145
<value compset="CAM.*%CT0MA">-chem waccm_ma_mam5</value>
150146
<value compset="CAM.*%CT1MA">-chem waccm_tsmlt_mam5</value>
151147
<value compset="CAM.*%CT4MA">-chem waccm_t4ma_mam5</value>
152-
<value compset="_CAM50%CLB">-clubb_sgs</value>
153148
<value compset="_CAM40%TMOZ">-chem trop_mozart</value>
154149

155150
<value compset="_CAM.*_BGC%B">-co2_cycle</value>
@@ -353,7 +348,6 @@
353348
<valid_values></valid_values>
354349
<default_value></default_value>
355350
<values match="last" modifier="additive">
356-
<value compset="_CAM.*%RCO2"> scenario_ghg=&apos;RAMP_CO2_ONLY&apos;ramp_co2_annual_rate=1 </value>
357351
<value compset="_CAM60%4xCO2"> co2vmr=1138.8e-6 </value>
358352
<value compset="_CAM60%WCTS%4xCO2"> flbc_cycle_yr=1 </value>
359353
<value compset="_CAM60%WCTS%4xCO2"> flbc_file='$DIN_LOC_ROOT/atm/waccm/lb/LBC_CMIP6abrupt4xCO2_cyclicalYear1_0p5degLat_c180929.nc' </value>

cime_config/config_compsets.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,6 @@
222222
<lname>2000_CAM50_SLND_SICE_DOCN%AQP3_SROF_SGLC_SWAV</lname>
223223
</compset>
224224

225-
<compset>
226-
<alias>QPC5HIST</alias>
227-
<lname>HIST_CAM50_SLND_SICE_DOCN%AQP3_SROF_SGLC_SWAV</lname>
228-
</compset>
229-
230-
<compset>
231-
<alias>QPC5M7</alias>
232-
<lname>2000_CAM50%MAM7_SLND_SICE_DOCN%AQP3_SROF_SGLC_SWAV</lname>
233-
</compset>
234-
235225
<compset>
236226
<alias>QPC6HIST</alias>
237227
<lname>HIST_CAM60_SLND_SICE_DOCN%AQP3_SROF_SGLC_SWAV</lname>
@@ -298,6 +288,11 @@
298288
<!-- CAM tested compsets -->
299289
<!-- ****************************** -->
300290

291+
<compset>
292+
<alias>FHIST_C5</alias>
293+
<lname>HIST_CAM50_CLM50%SP_CICE%PRES_DOCN%DOM_MOSART_SGLC_SWAV</lname>
294+
</compset>
295+
301296
<compset>
302297
<alias>FHIST_C4</alias>
303298
<lname>HIST_CAM40_CLM50%SP_CICE%PRES_DOCN%DOM_MOSART_SGLC_SWAV</lname>

0 commit comments

Comments
 (0)