Skip to content

Commit e2e6008

Browse files
committed
merge up to cam_development
2 parents 3f4567c + d991801 commit e2e6008

Some content is hidden

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

59 files changed

+3101
-16724
lines changed

.gitmodules

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
path = chem_proc
33
url = https://github.com/ESCOMP/CHEM_PREPROCESSOR.git
44
fxrequired = AlwaysRequired
5-
fxtag = chem_proc5_0_06
5+
fxtag = chem_proc5_0_07
66
fxDONOTUSEurl = https://github.com/ESCOMP/CHEM_PREPROCESSOR.git
77

88
[submodule "carma"]
@@ -107,13 +107,6 @@
107107
fxtag = clubb_4ncar_20240605_73d60f6_gpufixes_posinf
108108
fxDONOTUSEurl = https://github.com/larson-group/clubb_release
109109

110-
[submodule "cism"]
111-
path = components/cism
112-
url = https://github.com/ESCOMP/CISM-wrapper
113-
fxtag = cismwrap_2_2_010
114-
fxrequired = ToplevelRequired
115-
fxDONOTUSEurl = https://github.com/ESCOMP/CISM-wrapper
116-
117110
[submodule "rtm"]
118111
path = components/rtm
119112
url = https://github.com/ESCOMP/RTM
@@ -138,7 +131,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
138131
[submodule "ccs_config"]
139132
path = ccs_config
140133
url = https://github.com/ESMCI/ccs_config_cesm.git
141-
fxtag = ccs_config_cesm1.0.61
134+
fxtag = ccs_config_cesm1.0.63
142135
fxrequired = ToplevelRequired
143136
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
144137

@@ -204,4 +197,3 @@ url = https://github.com/NCAR/CUPiD.git
204197
fxtag = v0.3.1
205198
fxrequired = ToplevelRequired
206199
fxDONOTUSEurl = https://github.com/NCAR/CUPiD.git
207-

bld/build-namelist

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ OPTIONS
5050
of the CAM executable. Default: "config_cache.xml".
5151
-csmdata "dir" Root directory of CESM input data.
5252
Can also be set by using the CSMDATA environment variable.
53-
-dir "directory" Directory where output namelist files for each component will be
54-
written, i.e., atm_in, drv_in, ice_in, lnd_in, rof_in, and ocn_in.
53+
-dir "directory" Directory where output namelist files, "atm_in" and "drv_flds_in",
54+
will be written.
5555
Default: current working directory.
5656
-help [or -h] Print usage to STDOUT.
5757
-ignore_ic_date Ignore the date of the initial condition files
@@ -4444,12 +4444,14 @@ for my $i (0 .. $#interp_output) {
44444444

44454445
# Currently, interpolated output does not work with the COSP fields that use
44464446
# more than 1 mdims.
4447-
my $cosp_histfile_num = $nl->get_value('cosp_histfile_num');
4448-
if (!defined $cosp_histfile_num) {$cosp_histfile_num = 1;}
4449-
if ($interp_output[$cosp_histfile_num-1] =~ /$TRUE/io) {
4450-
die "$ProgName - ERROR: interpolate_output does not work with COSP. Use cosp_histfile_num\n" .
4451-
" to direct COSP output to a history file that is not interpolated. COSP output is\n" .
4452-
" currently on cosp_histfile_num=$cosp_histfile_num which contains interpolated output.";
4447+
if ($docosp) {
4448+
my $cosp_histfile_num = $nl->get_value('cosp_histfile_num');
4449+
if (!defined $cosp_histfile_num) {$cosp_histfile_num = 1;}
4450+
if ($interp_output[$cosp_histfile_num-1] =~ /$TRUE/io) {
4451+
die "$ProgName - ERROR: interpolate_output does not work with COSP. Use cosp_histfile_num\n" .
4452+
" to direct COSP output to a history file that is not interpolated. COSP output is\n" .
4453+
" currently on cosp_histfile_num=$cosp_histfile_num which contains interpolated output.";
4454+
}
44534455
}
44544456

44554457

@@ -5281,6 +5283,7 @@ sub check_snapshot_settings {
52815283
push (@validList_ac, ("'chem_timestep_tend'"));
52825284
}
52835285
push (@validList_ac, ("'vertical_diffusion_section'",
5286+
"'orographic_form_drag_stress'",
52845287
"'aero_model_drydep'", "'gw_tend'",
52855288
"'qbo_relax'", "'iondrag_calc_section'",
52865289
"'physics_dme_adjust'"));
@@ -5296,6 +5299,7 @@ sub check_snapshot_settings {
52965299
push (@validList_ac, ("'chem_timestep_tend'"));
52975300
}
52985301
push (@validList_ac, ("'vertical_diffusion_section'",
5302+
"'orographic_form_drag_stress'",
52995303
"'aero_model_drydep'", "'gw_tend'",
53005304
"'qbo_relax'", "'iondrag_calc_section'",
53015305
"'physics_dme_adjust'"));

bld/config_files/definition.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ Switch to turn on CLUBB_SGS package: 0 => no, 1 => yes
7979
<entry id="silhs" valid_values="0,1" value="0">
8080
Switch to turn on SILHS package: 0 => no, 1 => yes
8181
</entry>
82-
<entry id="unicon" valid_values="0,1" value="0">
83-
Switch to turn on UNICON package: 0 => off, 1 => on
84-
</entry>
8582
<entry id="clubb_do_adv" valid_values="0,1" value="0">
8683
Switch to turn on/off advecting CLUBB moments: 0 => no, 1 => yes
8784
</entry>
@@ -127,18 +124,8 @@ Chemistry source directory generated by the chemistry preprocessor; contains F90
127124
<entry id="chem_src_dir" value="">
128125
Chemistry source directory; contains F90 files.
129126
</entry>
130-
<entry id="ocn" valid_values="docn,dom,som,socn,aquaplanet,pop,mom,mpaso" value="docn">
131-
Use data ocean model (docn or dom), stub ocean (socn), or aqua planet ocean
132-
(aquaplanet) in cam build. When built from the CESM scripts the value of
133-
ocn may be set to pop, mom, or mpaso. This doesn't impact how CAM is built, only how
134-
attributes are matched when searching for namelist defaults. If ocn is set
135-
to som then the docn component is used.
136-
</entry>
137127
<entry id="aquaplanet" valid_value="0,1" value="0">
138-
Switch for aquaplanet mode. By default this switch sets the ocn component
139-
to use an analytic expression for SST. To use aquaplanet with time varying
140-
SSTs read from a dataset, or with a slab ocean, the ocean component should
141-
be set to DOCN.
128+
Switch for aquaplanet mode. Used by build-namelist.
142129
</entry>
143130
<entry id="co2_cycle" valid_values="0,1" value="0">
144131
Turn on CO2 cycle in biogeochemistry model: 0 => no, 1 => yes.

bld/configure

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ OPTIONS
104104
-psubcols <n> Maximum number of sub-columns in a run - set to 1 if not using sub-columns (default)
105105
-rad <name> Specify the radiation package [rrtmg | rrtmgp | rrtmgp_gpu | camrt]
106106
-silhs Switch on SILHS.
107-
-unicon Switch to turn on the UNICON scheme. Default: off.
108107
-usr_mech_infile Path and file name of the user supplied chemistry mechanism file.
109108
-waccm_phys Switch enables the use of WACCM physics in any chemistry configuration.
110109
The user does not need to set this if one of the waccm chemistry options
@@ -276,7 +275,6 @@ GetOptions(
276275
"nc_lib=s" => \$opts{'nc_lib'},
277276
"nc_mod=s" => \$opts{'nc_mod'},
278277
"nlev=s" => \$opts{'nlev'},
279-
"ocn=s" => \$opts{'ocn'},
280278
"offline_dyn" => \$opts{'offline_dyn'},
281279
"pbl=s" => \$opts{'pbl'},
282280
"pcols=s" => \$opts{'pcols'},
@@ -296,7 +294,6 @@ GetOptions(
296294
"smp!" => \$opts{'smp'},
297295
"spmd!" => \$opts{'spmd'},
298296
"target_os=s" => \$opts{'target_os'},
299-
"unicon" => \$opts{'unicon'},
300297
"usr_mech_infile=s" => \$opts{'usr_mech_infile'},
301298
"usr_src=s" => \$opts{'usr_src'},
302299
"v|verbose" => \$opts{'verbose'},
@@ -946,27 +943,6 @@ $cfg_ref->set('pbl', $pbl_pkg);
946943

947944
if ($print>=2) { print "PBL package: $pbl_pkg$eol"; }
948945

949-
#-----------------------------------------------------------------------------------------------
950-
# UNICON
951-
952-
if (defined $opts{'unicon'}) {
953-
$cfg_ref->set('unicon', $opts{'unicon'});
954-
}
955-
my $unicon = $cfg_ref->get('unicon');
956-
957-
# consistency checks...
958-
959-
# UNICON assumes park macrophysics, uw pbl, and mg microphysics
960-
if ($unicon and
961-
($macrophys_pkg ne 'park' or $pbl_pkg ne 'uw' or $microphys_pkg !~ m/^mg/) ) {
962-
die <<"EOF";
963-
** ERROR: UNICON assumes macrophys='park', pbl='uw', microphys='mg*'. Current values are:
964-
** macrophys: $macrophys_pkg, pbl: $pbl_pkg, microphys: $microphys_pkg.
965-
EOF
966-
}
967-
968-
if ($unicon and $print>=2) { print "Using UNICON scheme.$eol"; }
969-
970946
#-----------------------------------------------------------------------------------------------
971947
# Radiation package
972948

@@ -1053,25 +1029,6 @@ $cfg_ref->set('aquaplanet', $aquaplanet);
10531029
my $aqua_mode = $aquaplanet ? "ON" : "OFF";
10541030
if ($print>=2) { print "Aqua-planet mode: $aqua_mode$eol"; }
10551031

1056-
#-----------------------------------------------------------------------------------------------
1057-
# Ocean model
1058-
my $ocn_pkg = 'socn';
1059-
if ($aquaplanet) {
1060-
# Default for aquaplanet mode is to use an analytic expression for fixed SST.
1061-
$ocn_pkg = 'aquaplanet';
1062-
}
1063-
1064-
# Allow the user to override the default via the commandline.
1065-
# For aquaplanet with SOM the option '-ocn som' should be used to override
1066-
# aquaplanet's default ocean component setting.
1067-
if (defined $opts{'ocn'}) {
1068-
$ocn_pkg = lc($opts{'ocn'});
1069-
}
1070-
1071-
$cfg_ref->set('ocn', $ocn_pkg);
1072-
1073-
if ($print>=2) { print "Ocean package: $ocn_pkg$eol"; }
1074-
10751032
#-----------------------------------------------------------------------------------------------
10761033
# Use modifications for perturbation growth testing?
10771034
if (defined $opts{'pergro'}) {
@@ -1471,12 +1428,6 @@ else {
14711428
if ($print>=2) { print "Advected constituents added by CARMA model $carma_pkg: $carma_nadv$eol"; }
14721429
}
14731430

1474-
# UNICON tracers
1475-
if ($unicon) {
1476-
$nadv += 5;
1477-
if ($print>=2) { print "Advected constituents added by UNICON: 5$eol"; }
1478-
}
1479-
14801431
}
14811432

14821433
# Special case for Kessler physics, need ice and water tracers
@@ -1837,9 +1788,6 @@ if ($silhs == 1) {
18371788
# Simple Models
18381789
if ($simple_phys) { $cfg_cppdefs .= ' -DSIMPLE'; }
18391790

1840-
# UNICON
1841-
if ($unicon) { $cfg_cppdefs .= ' -DUSE_UNICON'; }
1842-
18431791
# Harmonized Emissions Component (HEMCO)
18441792
# These CPP definitions are used by HEMCO to recognize -
18451793
# MODEL_ - HEMCO/GEOS-Chem components running in model environment
@@ -2186,8 +2134,9 @@ sub write_filepath
21862134
print $fh "$camsrcdir/src/atmos_phys/schemes/rasch_kristjansson\n";
21872135
print $fh "$camsrcdir/src/atmos_phys/schemes/utilities\n";
21882136
print $fh "$camsrcdir/src/atmos_phys/schemes/rayleigh_friction\n";
2189-
21902137
print $fh "$camsrcdir/src/atmos_phys/schemes/cloud_fraction\n";
2138+
print $fh "$camsrcdir/src/atmos_phys/schemes/vertical_diffusion\n";
2139+
print $fh "$camsrcdir/src/atmos_phys/schemes/holtslag_boville\n";
21912140

21922141
# Dynamics package and test utilities
21932142
print $fh "$camsrcdir/src/dynamics/$dyn\n";

0 commit comments

Comments
 (0)