Skip to content

Commit 0470b80

Browse files
authored
Merge pull request ESCOMP#1406 from brian-eaton/rm-uni
cam6_4_125: remove unicon; remove -ocn option; misc
2 parents d04de12 + 2cf3ed9 commit 0470b80

24 files changed

+219
-14259
lines changed

bld/build-namelist

Lines changed: 2 additions & 2 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

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: 0 additions & 52 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

bld/namelist_files/namelist_defaults_cam.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,6 @@
21052105
<conv_water_in_rad phys="cam7" > 1 </conv_water_in_rad>
21062106

21072107
<conv_water_frac_limit > 0.01d0 </conv_water_frac_limit>
2108-
<conv_water_frac_limit unicon="1" > 0.001d0 </conv_water_frac_limit>
21092108

21102109
<!-- CLUBB_SGS -->
21112110
<do_clubb_sgs > .false. </do_clubb_sgs>
@@ -2489,7 +2488,6 @@
24892488
<eddy_max_bot_pressure phys="cam7" waccm_phys="1" >100.D0</eddy_max_bot_pressure>
24902489

24912490
<eddy_moist_entrain_a2l >30.D0</eddy_moist_entrain_a2l>
2492-
<eddy_moist_entrain_a2l unicon="1">40.D0</eddy_moist_entrain_a2l>
24932491

24942492
<diff_cnsrv_mass_check> .false. </diff_cnsrv_mass_check>
24952493

@@ -2571,10 +2569,8 @@
25712569
<sol_facti_cloud_borne clubb_sgs="1" microphys="mg3" >1.0D0</sol_facti_cloud_borne>
25722570

25732571
<sol_factb_interstitial >0.1D0</sol_factb_interstitial>
2574-
<sol_factb_interstitial unicon="1" >1.0D0</sol_factb_interstitial>
25752572

25762573
<sol_factic_interstitial >0.4D0</sol_factic_interstitial>
2577-
<sol_factic_interstitial unicon="1" >1.0D0</sol_factic_interstitial>
25782574

25792575
<!-- sub-column switches for physics packages -->
25802576
<use_subcol_microp >.false.</use_subcol_microp>
@@ -2642,12 +2638,10 @@
26422638
<!-- convection schemes -->
26432639
<deep_scheme >ZM </deep_scheme>
26442640
<deep_scheme silhs="1" >off </deep_scheme>
2645-
<deep_scheme unicon="1" >UNICON </deep_scheme>
26462641
<deep_scheme pbl="none" >NONE </deep_scheme>
26472642

26482643
<shallow_scheme pbl="none" >NONE </shallow_scheme>
26492644
<shallow_scheme pbl="uw" >UW </shallow_scheme>
2650-
<shallow_scheme pbl="uw" unicon="1">UNICON </shallow_scheme>
26512645
<shallow_scheme pbl="hb" >Hack </shallow_scheme>
26522646
<shallow_scheme pbl="hbr" >Hack </shallow_scheme>
26532647
<shallow_scheme pbl="clubb_sgs" >CLUBB_SGS</shallow_scheme>
@@ -2662,8 +2656,6 @@
26622656

26632657
<cldfrc_rhminl > 0.900D0 </cldfrc_rhminl>
26642658
<cldfrc_rhminl phys="cam5" carma="cirrus" > 0.910D0 </cldfrc_rhminl>
2665-
<cldfrc_rhminl dyn="fv" phys="cam5" unicon="1" > 0.850D0 </cldfrc_rhminl>
2666-
<cldfrc_rhminl dyn="se" phys="cam5" unicon="1" > 0.850D0 </cldfrc_rhminl>
26672659
<cldfrc_rhminl phys="cam5" microphys="mg2" > 0.950D0 </cldfrc_rhminl>
26682660
<cldfrc_rhminl phys="cam5" microphys="mg3" > 0.950D0 </cldfrc_rhminl>
26692661

@@ -2688,8 +2680,6 @@
26882680
<cldfrc_rhminl hgrid="1.9x2.5" phys="cam4" > 0.910D0 </cldfrc_rhminl>
26892681
<cldfrc_rhminl hgrid="0.9x1.25" phys="cam4" > 0.920D0 </cldfrc_rhminl>
26902682
<cldfrc_rhminl hgrid="0.47x0.63" phys="cam4" > 0.920D0 </cldfrc_rhminl>
2691-
<!-- Note: the ocn attribute allows coupled and uncoupled configurations to have different tunings -->
2692-
<cldfrc_rhminl hgrid="0.47x0.63" phys="cam4" ocn="docn" > 0.913D0 </cldfrc_rhminl>
26932683
<cldfrc_rhminl dyn="se" phys="cam4" > 0.910D0 </cldfrc_rhminl>
26942684

26952685
<cldfrc_rhminl_adj_land > 0.100D0 </cldfrc_rhminl_adj_land>
@@ -2754,11 +2744,9 @@
27542744
<cldfrc_icecrit phys="cam7" carma="cirrus"> 0.70D0 </cldfrc_icecrit>
27552745

27562746
<cldfrc2m_rhmini > 0.80D0 </cldfrc2m_rhmini>
2757-
<cldfrc2m_rhmini unicon="1" > 0.85D0 </cldfrc2m_rhmini>
27582747
<cldfrc2m_rhmini clubb_sgs="1" > 0.80D0 </cldfrc2m_rhmini>
27592748

27602749
<cldfrc2m_rhminis > 1.0D0 </cldfrc2m_rhminis>
2761-
<cldfrc2m_rhminis unicon="1" > 0.85D0 </cldfrc2m_rhminis>
27622750

27632751
<cldfrc2m_rhmaxi > 1.1D0 </cldfrc2m_rhmaxi>
27642752
<cldfrc2m_rhmaxi clubb_sgs="1" > 1.0D0 </cldfrc2m_rhmaxi>
@@ -2779,7 +2767,6 @@
27792767

27802768
<!-- Cldwat -->
27812769
<rk_strat_icritc > 5.0e-6 </rk_strat_icritc>
2782-
<rk_strat_icritc dyn="fv" unicon="1" > 9.5e-6 </rk_strat_icritc>
27832770
<rk_strat_icritc hgrid="0.23x0.31" > 45.0e-6 </rk_strat_icritc>
27842771
<rk_strat_icritc hgrid="0.47x0.63" > 45.0e-6 </rk_strat_icritc>
27852772
<rk_strat_icritc hgrid="0.5x0.625" > 45.0e-6 </rk_strat_icritc>
@@ -2954,7 +2941,7 @@
29542941
'T', 'bc_a1', 'bc_a4', 'dst_a1', 'dst_a2', 'dst_a3', 'ncl_a1', 'ncl_a2', 'ncl_a3',
29552942
'num_a1', 'num_a2', 'num_a3', 'num_a4', 'pom_a1', 'pom_a4', 'so4_a1', 'so4_a2', 'so4_a3', 'soa_a1', 'soa_a2'
29562943
</scm_relax_fincl>
2957-
<scm_relax_fincl phys="cam_dev"scam="1" >
2944+
<scm_relax_fincl phys="cam7" scam="1" >
29582945
'T', 'bc_a1', 'bc_a4', 'dst_a1', 'dst_a2', 'dst_a3', 'ncl_a1', 'ncl_a2', 'ncl_a3',
29592946
'num_a1', 'num_a2', 'num_a3', 'num_a4', 'pom_a1', 'pom_a4', 'so4_a1', 'so4_a2', 'so4_a3', 'soa_a1', 'soa_a2'
29602947
</scm_relax_fincl>

bld/namelist_files/namelist_definition.xml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,10 +3520,10 @@ Default: 10
35203520
<!-- Moist Convection and Microphysics -->
35213521

35223522
<entry id="deep_scheme" type="char*16" category="conv"
3523-
group="phys_ctl_nl" valid_values="ZM,UNICON,off,CLUBB_SGS" >
3523+
group="phys_ctl_nl" valid_values="ZM,off,CLUBB_SGS" >
35243524
Type of deep convection scheme employed. 'ZM' for Zhang-McFarlane;
3525-
'off' for none; or 'UNICON' which doesn't distinquish shallow and deep.
3526-
Default: 'ZM' unless using 'UNICON' or 'pbl=none'
3525+
'off' for none.
3526+
Default: 'ZM' unless using 'pbl=none'
35273527
</entry>
35283528

35293529
<entry id="microp_scheme" type="char*16" category="conv"
@@ -3550,12 +3550,11 @@ Default: set by build-namelist
35503550
</entry>
35513551

35523552
<entry id="shallow_scheme" type="char*16" category="conv"
3553-
group="phys_ctl_nl" valid_values="Hack,UW,CLUBB_SGS,UNICON" >
3553+
group="phys_ctl_nl" valid_values="Hack,UW,CLUBB_SGS" >
35543554
Type of shallow convection scheme employed.
35553555
'Hack' for Hack shallow convection;
35563556
'UW' for original McCaa UW pbl scheme, modified by Sungsu Park;
35573557
'CLUBB_SGS' for CLUBB_SGS
3558-
'UNICON' which doesn't distinquish shallow and deep.
35593558
Default: set by build-namelist (depends on {{ hilight }}eddy_scheme{{ closehilight }}).
35603559
</entry>
35613560

@@ -3655,18 +3654,6 @@ diffusion solver routine.
36553654
Default: set by build-namelist
36563655
</entry>
36573656

3658-
<entry id="unicon_offline_dat_out" type="logical" category="diagnostics"
3659-
group="unicon_nl" valid_values="" >
3660-
Produce output for the offline unicon driver.
3661-
Default: .false.
3662-
</entry>
3663-
3664-
<entry id="unicon_offline_dat_hfile" type="integer" category="diagnostics"
3665-
group="unicon_nl" valid_values="" >
3666-
History file number for offline unicon driver output.
3667-
Default: 2 (i.e., h1 history file)
3668-
</entry>
3669-
36703657
<!-- CLUBB PBL Diff nl -->
36713658

36723659
<entry id="clubb_cloudtop_cooling" type="logical" category="pblrad"

cime_config/buildcpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def buildcpp(case):
3434
atm_grid = case.get_value("ATM_GRID")
3535
pts_mode = case.get_value("PTS_MODE")
3636
cam_dycore = case.get_value("CAM_DYCORE")
37-
comp_ocn = case.get_value("COMP_OCN")
38-
docn_mode = case.get_value("DOCN_MODE")
3937
mpilib = case.get_value("MPILIB")
4038
compiler = case.get_value("COMPILER") # for chem preprocessor
4139
nthrds_atm = case.get_value("NTHRDS_ATM")
@@ -85,15 +83,6 @@ def buildcpp(case):
8583
case.set_value("CASE_SUPPORT_LIBRARIES", ",".join(libs))
8684
except:
8785
pass
88-
# The ocean component setting is only used by CAM to do attribute matching for
89-
# setting default tuning parameter values. In SOM mode we want to use the same
90-
# tunings as the fully coupled B compset, so set the ocean component to pop in
91-
# that case.
92-
93-
if docn_mode == 'som':
94-
config_opts += ["-ocn", "pop"]
95-
else:
96-
config_opts += ["-ocn", comp_ocn]
9786

9887
# Add user options.
9988
config_opts += cam_config_opts.split(" ")

cime_config/config_compsets.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112

113113
<compset>
114114
<alias>FSCAMARM95</alias>
115-
<lname>2000_CAM60%FSCAMARM95_CLM50%SP_CICE%PRES_DOCN%DOM_SROF_SGLC_SWAV</lname>
115+
<lname>2000_CAM60%SCAMARM95_CLM50%SP_CICE%PRES_DOCN%DOM_SROF_SGLC_SWAV</lname>
116116
</compset>
117117

118118
<compset>

0 commit comments

Comments
 (0)