Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove options not used, e.g. use_fates, use_cndv, and many more #46

Merged
merged 92 commits into from
Dec 9, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
0d669e8
Rm use_fates, use_cndv, use_lai_streams, use_hydrstress
slevis-lmwg Oct 10, 2022
470bb1d
Rm use_dynroot, use_grainproduct, use_nguardrail
slevis-lmwg Oct 10, 2022
0a8b99a
Rm use_extralakelayers, use_vancouver, use_mexicocity
slevis-lmwg Oct 10, 2022
14a4fe8
Rm use_fertizer _ozone _lch4 _c13* _c14* _snicar_frc _vichydro
slevis-lmwg Oct 11, 2022
ffd9867
Rm use_luna
slevis-lmwg Oct 13, 2022
dbb3745
Rm use_fun; see below for testing notes
slevis-lmwg Oct 15, 2022
ac75714
Rm use_nitrif_denitrif; izumi test-suite pgi PASS, others in progress
slevis-lmwg Oct 18, 2022
0306d85
Rm use_vertsoilc; izumi test-suite OK (same results as before)
slevis-lmwg Oct 19, 2022
cffbbf8
Rm use_century_decomp; izumi test-suite in progress
slevis-lmwg Oct 19, 2022
ffda386
Rm use_bedrock, use_flexibleCN; the following nag test passed:
slevis-lmwg Oct 20, 2022
18bd631
Rm camdenNJ asphaltjungleNJ urbanc_alpha numaIA smallvilleIA options
slevis-lmwg Oct 20, 2022
72314c2
Getting izumi gnu test-suite to work
slevis-lmwg Oct 20, 2022
9c3d5f0
Merge commit '72314c2bed1e3f6cc947f47934782929547ebbfb' into cesm2_1_…
slevis-lmwg Oct 20, 2022
3ef05e8
Rm irrig, npcropmin, npcropmax incomplete; details:
slevis-lmwg Oct 21, 2022
80436d2
Rm irrig, npcropmin, npcropmax complete; izumi gnu test-suite OK
slevis-lmwg Oct 21, 2022
8027739
Rm use_crop and vestiges of c13 & c14 code (incomplete); testing:
slevis-lmwg Oct 21, 2022
524f092
Rm use_crop (complete); izumi gnu test-suite OK
slevis-lmwg Oct 21, 2022
e8d6c19
Some clean-up for the following izumi intel test to pass:
slevis-lmwg Oct 24, 2022
2c30b33
Rm drydep, though not all because tied to lnd2atm; not tested
slevis-lmwg Oct 24, 2022
fca445d
Rm ozone-related code; izumi test-suites OK
slevis-lmwg Oct 24, 2022
8c5aa6d
Rm misc. items including some ch4, lake, drydep, c13/c14
slevis-lmwg Oct 25, 2022
81ad59e
Rm orbital params; izumi gnu test-suite ok
slevis-lmwg Oct 25, 2022
7f5a972
Rm param-file code; start removing use_cn & bgc code; elim. bgc tests
slevis-lmwg Oct 26, 2022
5fa514a
Same as the testlist going in slim's main branch
slevis-lmwg Oct 28, 2022
9ec8bd9
Merge tag 'slim0.1.006_release-cesm2.1.4' into cesm2_1_slim_slevis
slevis-lmwg Oct 28, 2022
10e1f1d
Rm some CN modules; izumi test-suites OK
slevis-lmwg Nov 1, 2022
aa77f2a
Revert last commit to avoid diffs from baseline
slevis-lmwg Nov 2, 2022
1560dc7
Rm most CN, SoilBiogeochem, Species, ...; izumi nag test PASS
slevis-lmwg Nov 2, 2022
353c530
Rm albice, snicar, aerosol, photosynth, surfrad, surfacealbedomod, ...
slevis-lmwg Nov 2, 2022
6143348
Rm lake, rootbiophys, soilstate, soilwater, ...; izumi gnu test PASS
slevis-lmwg Nov 2, 2022
be98eb6
Rm organic, ndepStream, paramUtil; also BSW and *SAT vars from history
slevis-lmwg Nov 3, 2022
aa9b192
Rm pftcon; izumi nag test PASS
slevis-lmwg Nov 3, 2022
bc29a8b
Rm pedotransfer; izumi nag test PASS
slevis-lmwg Nov 3, 2022
07397ed
Rm DustEmission and DustDryDep; izumi nag test PASS
slevis-lmwg Nov 3, 2022
7dc9bae
Rm organic_frac_squared; izumi nag test PASS
slevis-lmwg Nov 3, 2022
df09c61
nvegwcs, n*decomp, constrain_stress_deciduous_onset, reseed_dead_plants
slevis-lmwg Nov 3, 2022
d613ed3
Rm ndep; izumi nag test PASS
slevis-lmwg Nov 6, 2022
9b4d2eb
Rm fire; izumi nag test PASS
slevis-lmwg Nov 6, 2022
c5c3e00
Rm spinup; izumi nag test PASS
slevis-lmwg Nov 6, 2022
80a9410
Rm ch4; izumi nag test PASS; other izumi tests in progress
slevis-lmwg Nov 6, 2022
8a5cea1
Rm voc; izumi nag test PASS
slevis-lmwg Nov 7, 2022
7a7cde9
Rm drydep; izumi nag test PASS
slevis-lmwg Nov 7, 2022
c14674b
Rm urban (part 1); izumi nag test PASS
slevis-lmwg Nov 8, 2022
2625ad3
Rm most urban; cheyenne test-suite OK
slevis-lmwg Nov 14, 2022
a5e3aad
Merge branch 'cesm2_1_slim_slevis_rmdrydep' into cesm2_1_slim_slevis
slevis-lmwg Nov 14, 2022
1203ff8
Rm more urban; cheyenne test PASS
slevis-lmwg Nov 14, 2022
7dff3eb
Rm glc_mec; cheyenne test PASS
slevis-lmwg Nov 15, 2022
c74dd29
Rm glc_snow_persistence_max_days; cheyenne test PASS
slevis-lmwg Nov 15, 2022
ad8e593
Rm n_melt_glcmec; cheyenne test PASS
slevis-lmwg Nov 15, 2022
7925733
Rm glcmec_downscale_longwave & reset_snow_glc; cheyenne test PASS
slevis-lmwg Nov 15, 2022
0735b5d
Rm glacier_smb; cheyenne test PASS
slevis-lmwg Nov 15, 2022
7ad7759
Rm bareland_normalization; cheyenne test PASS
slevis-lmwg Nov 15, 2022
5648e81
Rm glc_do_dynglacier & glc_present; cheyenne test PASS
slevis-lmwg Nov 15, 2022
b9036bd
Rm canopyhydrol, snowpack, lnd2atm options & create_crop_landunit
slevis-lmwg Nov 15, 2022
157a9b0
Rm bgc_mode, soilwater_movem, rooting_prof, soil_resis, hydro switches
slevis-lmwg Nov 15, 2022
ce6fa5d
Rm dust; same cheyenne test PASS
slevis-lmwg Nov 15, 2022
e73afcb
Rm various params; cheyenne gnu test-suite OK
slevis-lmwg Nov 18, 2022
0683bcb
Rm lnd2glc; also many history fields; cheyenne gnu test-suite OK
slevis-lmwg Nov 22, 2022
320bce1
Rm glc2lnd; cheyenne gnu test PASS
slevis-lmwg Nov 22, 2022
947cbe9
Rm handle_ice_runoff, maxpatch_pft; cheyenne gnu ERS test OK
slevis-lmwg Nov 23, 2022
07d121a
Rm glacier_region_ice_runoff_behavior; cheyenne gnu ERS test OK
slevis-lmwg Nov 28, 2022
d75f629
Rm soil_layerstruct; cheyenne gnu ERS test OK
slevis-lmwg Nov 28, 2022
e3ecc65
Rm melt_behavior; cheyenne gnu ERS test OK
slevis-lmwg Nov 28, 2022
d7e4699
Rm melt_replaced_by_ice, has_virtual_columns; cheyenne gnu ERS test OK
slevis-lmwg Nov 28, 2022
d9035f2
Rm most of ActiveLayerMod; cheyenne gnu ERS test OK
slevis-lmwg Nov 29, 2022
bcf9403
Rm all ActiveLayerMod; cheyenne gnu ERS test OK
slevis-lmwg Nov 29, 2022
46dd17d
Rm CanopyStateType; cheyenne gnu ERS test OK
slevis-lmwg Nov 29, 2022
4d07568
Rm some of WaterfluxType; cheyenne gnu ERS test OK
slevis-lmwg Nov 29, 2022
a300719
Rm most of WaterfluxType; cheyenne gnu ERS test OK
slevis-lmwg Nov 29, 2022
5a16feb
Rm some of WaterStateType; cheyenne gnu ERS test OK
slevis-lmwg Nov 30, 2022
3a0f9e3
Rm nbedrock; cheyenne gnu ERS test OK
slevis-lmwg Dec 1, 2022
8eba3af
Rm more bedrock stuff; cheyenne gnu ERS test OK
slevis-lmwg Dec 1, 2022
037b77d
Rm SoilHydrology stuff; cheyenne gnu ERS test OK
slevis-lmwg Dec 1, 2022
7a52b72
Rm SoilHydrology* & parts of SoilState*; cheyenne gnu ERS test OK
slevis-lmwg Dec 1, 2022
a61e2a9
Rm some of SoilState*; cheyenne gnu ERS test OK
slevis-lmwg Dec 2, 2022
8cd7ca1
Rm more SoilState*; cheyenne gnu ERS test OK
slevis-lmwg Dec 2, 2022
360bc8e
Rm most SoilState*; cheyenne gnu ERS test OK
slevis-lmwg Dec 2, 2022
b96e5ee
Begin to rm h2osoi_vol_col; cheyenne gnu ERS test OK
slevis-lmwg Dec 2, 2022
27d7361
Rm SoilState* + some WaterStateType; cheyenne gnu ERS test OK
slevis-lmwg Dec 3, 2022
ebc001a
Rm most InitAcc* & UpdateAcc* subroutines; cheyenne gnu ERS OK
slevis-lmwg Dec 5, 2022
8f32bc1
Rm much of SurfaceAlbedoType; cheyenne gnu ERS test OK
slevis-lmwg Dec 5, 2022
edf86dd
Rm most of TemperatureType; cheyenne gnu ERS test OK
slevis-lmwg Dec 5, 2022
3588ff1
Rm most EnergyFluxType + SolarAbsorbedType; cheyenne gnu ERS test OK
slevis-lmwg Dec 6, 2022
9eb38c8
Rm FrictionVelocityMod & subroutines rhoSat + lnd2atm; same ERS test OK
slevis-lmwg Dec 6, 2022
32264d8
Rm atm2lndMod, also a few more variables; cheyenne gnu ERS test OK
slevis-lmwg Dec 6, 2022
8e9a84f
Rm SolarAbsorbed, Waterflux, parts of TopoMod; cheyenne gnu ERS test OK
slevis-lmwg Dec 6, 2022
f425f29
Rm atm2lnd_params_* and related code; cheyenne gnu ERS test OK
slevis-lmwg Dec 6, 2022
d1e5c0b
Rm part of atm2lndType; cheyenne gnu ERS test OK
slevis-lmwg Dec 7, 2022
f7d12dd
Rm more of atm2lndType; cheyenne gnu ERS test OK
slevis-lmwg Dec 7, 2022
05971e4
Rm fert_cft and miscellaneous clean-up; cheyenne gnu ERS test OK
slevis-lmwg Dec 7, 2022
828d42b
Miscellaneous clean-up; cheyenne test-suite one test fails per compiler
slevis-lmwg Dec 8, 2022
3b8e9f0
Changed 2000_CMIP6_AMIP_1deg_ensemble testmods to coldstart
slevis-lmwg Dec 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 7 additions & 49 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ OPTIONS
bgc = Carbon Nitrogen with methane, nitrification, vertical soil C,
CENTURY decomposition
This toggles on the namelist variables:
use_cn, use_lch4, use_nitrif_denitrif, use_vertsoilc, use_century_decomp
use_cn, use_nitrif_denitrif, use_vertsoilc, use_century_decomp
-[no-]chk_res Also check [do NOT check] to make sure the resolution and
land-mask is valid.
-clm_demand "list" List of variables to require on clm namelist besides the usuals.
Expand Down Expand Up @@ -640,7 +640,7 @@ sub setup_cmdl_bgc {

{
# If the variable has already been set use it, if not set to the value defined by the bgc_mode
my @list = ( "use_lch4", "use_nitrif_denitrif", "use_vertsoilc", "use_century_decomp" );
my @list = ( "use_nitrif_denitrif", "use_vertsoilc", "use_century_decomp" );
my $ndiff = 0;
my %settings = ( 'bgc_mode'=>$nl_flags->{'bgc_mode'} );
foreach my $var ( @list ) {
Expand Down Expand Up @@ -839,15 +839,13 @@ sub setup_cmdl_run_type {
my $var = "clm_start_type";
if (defined $opts->{$var}) {
if ($opts->{$var} eq "default" ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $var,
'use_cndv'=>$nl_flags->{'use_cndv'} );
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $var);
} else {
my $group = $definition->get_group_name($var);
$nl->set_variable_value($group, $var, quote_string( $opts->{$var} ) );
}
} else {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $var,
'use_cndv'=>$nl_flags->{'use_cndv'} );
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $var);
}
$nl_flags->{'clm_start_type'} = $nl->get_value($var);
}
Expand Down Expand Up @@ -945,7 +943,6 @@ sub process_namelist_commandline_use_case {
$settings{'sim_year_range'} = $nl_flags->{'sim_year_range'};
$settings{'phys'} = $nl_flags->{'phys'};
$settings{'use_cn'} = $nl_flags->{'use_cn'};
$settings{'use_cndv'} = $nl_flags->{'use_cndv'};
$settings{'cnfireson'} = $nl_flags->{'cnfireson'};
# Loop over the variables specified in the use case.
# Add each one to the namelist.
Expand Down Expand Up @@ -1005,8 +1002,6 @@ sub process_namelist_inline_logic {
setup_logic_decomp_performance($opts, $nl_flags, $definition, $defaults, $nl);
setup_logic_glacier($opts, $nl_flags, $definition, $defaults, $nl, $envxml_ref, $physv);
setup_logic_dynamic_plant_nitrogen_alloc($opts, $nl_flags, $definition, $defaults, $nl, $physv);
setup_logic_hydrstress($opts, $nl_flags, $definition, $defaults, $nl, $physv);
setup_logic_dynamic_roots($opts, $nl_flags, $definition, $defaults, $nl, $physv);
setup_logic_params_file($opts, $nl_flags, $definition, $defaults, $nl, $physv);
setup_logic_create_crop_landunit($opts, $nl_flags, $definition, $defaults, $nl, $physv);
setup_logic_soilstate($opts, $nl_flags, $definition, $defaults, $nl, $physv);
Expand Down Expand Up @@ -1290,8 +1285,6 @@ sub setup_logic_demand {
$settings{'glc_nec'} = $nl_flags->{'glc_nec'};
# necessary for demand to be set correctly
$settings{'use_cn'} = $nl_flags->{'use_cn'};
$settings{'use_cndv'} = $nl_flags->{'use_cndv'};
$settings{'use_lch4'} = $nl_flags->{'use_lch4'};
$settings{'use_nitrif_denitrif'} = $nl_flags->{'use_nitrif_denitrif'};
$settings{'use_vertsoilc'} = $nl_flags->{'use_vertsoilc'};
$settings{'use_century_decomp'} = $nl_flags->{'use_century_decomp'};
Expand Down Expand Up @@ -1346,9 +1339,6 @@ sub setup_logic_surface_dataset {
}
$flanduse_timeseries = $nl_flags->{'flanduse_timeseries'};

if ($flanduse_timeseries ne "null" && &value_is_true($nl_flags->{'use_cndv'}) ) {
$log->fatal_error( "dynamic PFT's (setting flanduse_timeseries) are incompatible with dynamic vegetation (use_cndv=.true)." );
}
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'fsurdat',
'hgrid'=>$nl_flags->{'res'},
'sim_year'=>$nl_flags->{'sim_year'},
Expand Down Expand Up @@ -1413,7 +1403,7 @@ sub setup_logic_initial_conditions {
} else {
delete( $settings{'sim_year'} );
}
foreach my $item ( "mask", "maxpft", "glc_nec", "use_cn", "use_cndv",
foreach my $item ( "mask", "maxpft", "glc_nec", "use_cn",
"use_nitrif_denitrif", "use_vertsoilc", "use_century_decomp",
) {
$settings{$item} = $nl_flags->{$item};
Expand Down Expand Up @@ -1447,7 +1437,7 @@ sub setup_logic_initial_conditions {
}
}
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $useinitvar,
'use_cndv'=>$nl_flags->{'use_cndv'}, 'phys'=>$physv->as_string(),
'phys'=>$physv->as_string(),
'sim_year'=>$settings{'sim_year'}, 'nofail'=>1 );
$settings{$useinitvar} = $nl->get_value($useinitvar);
if ( $try > 1 ) {
Expand All @@ -1457,7 +1447,7 @@ sub setup_logic_initial_conditions {
if ( &value_is_true($nl->get_value($useinitvar) ) ) {

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, "init_interp_attributes",
'sim_year'=>$settings{'sim_year'}, 'use_cndv'=>$nl_flags->{'use_cndv'},
'sim_year'=>$settings{'sim_year'},
'glc_nec'=>$nl_flags->{'glc_nec'},
'use_cn'=>$nl_flags->{'use_cn'}, 'nofail'=>1 );
my $attributes_string = remove_leading_and_trailing_quotes($nl->get_value("init_interp_attributes"));
Expand Down Expand Up @@ -1597,38 +1587,6 @@ sub setup_logic_dynamic_plant_nitrogen_alloc {

#-------------------------------------------------------------------------------

sub setup_logic_hydrstress {
#
# Plant hydraulic stress model
#
my ($opts, $nl_flags, $definition, $defaults, $nl, $physv) = @_;

# TODO(kwo, 2015-09) make this depend on > clm 5.0 at some point.
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_hydrstress' );
$nl_flags->{'use_hydrstress'} = $nl->get_value('use_hydrstress');
}

#-------------------------------------------------------------------------------

sub setup_logic_dynamic_roots {
#
# dynamic root model
#
my ($opts, $nl_flags, $definition, $defaults, $nl, $physv) = @_;

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_dynroot', 'phys'=>$physv->as_string(), 'bgc_mode'=>$nl_flags->{'bgc_mode'});
my $use_dynroot = $nl->get_value('use_dynroot');
if ( &value_is_true($use_dynroot) && ($nl_flags->{'bgc_mode'} eq "sp") ) {
$log->fatal_error("Cannot turn dynroot mode on mode bgc=sp\n" .
"Set the bgc mode to 'cn' or 'bgc'.");
}
if ( &value_is_true( $use_dynroot ) && &value_is_true( $nl_flags->{'use_hydrstress'} ) ) {
$log->fatal_error("Cannot turn use_dynroot on when use_hydrstress is on" );
}
}

#-------------------------------------------------------------------------------

sub setup_logic_canopy {
my ($opts, $nl_flags, $definition, $defaults, $nl, $physv) = @_;
#
Expand Down
4 changes: 2 additions & 2 deletions bld/configure
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ OPTIONS
or double leading dashes. A consequence of this is that single letter options may
NOT be bundled.

-bgc <name> Build CLM with BGC package [ none | cn | cndv ]
-bgc <name> Build CLM with BGC package [ none | cn ]
(default is none).
-cache <file> Name of output cache file (default: config_cache.xml).
-cachedir <file> Name of directory where output cache file is written
Expand All @@ -58,7 +58,7 @@ OPTIONS
-cppdefs <string> A string of user specified CPP defines. Appended to
Makefile defaults. e.g. -cppdefs '-DVAR1 -DVAR2'
-crop <name> Toggle for prognostic crop model. [on | off] (default is off)
(can ONLY be turned on when BGC type is CN or CNDV)
(can ONLY be turned on when BGC type is CN)
-comp_intf <name> Component interface to use (ESMF or MCT) (default MCT)
-defaults <file> Specify full path to a configuration file which will be used
to supply defaults instead of the defaults in bld/config_files.
Expand Down
2 changes: 1 addition & 1 deletion bld/namelist_files/namelist_defaults.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ul>
<h3>Miscellaneous items include:</h3>
<ol>
<li>Biogeochemistry (BGC) type (none, CN, CNDV)</li>
<li>Biogeochemistry (BGC) type (none, CN)</li>
<li>Initial condition date (ymd - year month day)</li>
<li>Initial condition time of day (tod) (sec)</li>
<li>Maximum number of Plant Function Types (maxpft)</li>
Expand Down
Loading