Skip to content

Commit b35c684

Browse files
committed
Merge branch 'master' into fates_fuel_refactor
2 parents bafe717 + 26b9aa7 commit b35c684

32 files changed

+966
-375
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
[submodule "fates"]
2929
path = src/fates
3030
url = https://github.com/NGEET/fates
31-
fxtag = sci.1.78.2_api.36.0.0
31+
fxtag = sci.1.78.3_api.36.1.0
3232
fxrequired = AlwaysRequired
3333
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
3434
fxDONOTUSEurl = https://github.com/NCAR/fates-release

bld/CLMBuildNamelist.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,8 +2759,7 @@ SIMYR: foreach my $sim_yr ( @sim_years ) {
27592759

27602760
# this check has to be here and not earlier since use_init_interp is set here and hillslope is already set above in setup_logic_hillslope
27612761
if ( &value_is_true($nl->get_value($useinitvar)) && value_is_true($nl->get_value("use_hillslope")) ) {
2762-
$log->warning("WARNING: You have set use_hillslope while $useinitvar is TRUE.\n This means all hillslope columns in a gridcell will read identical values" .
2763-
" from initial conditions. If you are sure you want this behaviour:")
2762+
$log->warning("WARNING: You have set use_hillslope while $useinitvar is TRUE.\n This means all hillslope columns in a gridcell will read identical values from initial conditions, even if the initial conditions (finidat) file has hillslope information. If you are sure you want this behaviour, add -ignore_warnings to CLM_BLDNML_OPTS.")
27642763
}
27652764

27662765
} # end initial conditions
@@ -3637,6 +3636,10 @@ sub setup_logic_hillslope {
36373636
if ( (! &value_is_true($use_hillslope)) && &value_is_true($use_hillslope_routing) ) {
36383637
$log->fatal_error("Cannot turn on use_hillslope_routing when use_hillslope is off\n" );
36393638
}
3639+
my $hillslope_file = $nl->get_value('hillslope_file');
3640+
if ( &value_is_true($use_hillslope) && ( ! defined($hillslope_file) ) ) {
3641+
$log->fatal_error("You must provide hillslope_file if use_hillslope is .true.\n" );
3642+
}
36403643
}
36413644

36423645
#-------------------------------------------------------------------------------

bld/namelist_files/namelist_defaults_ctsm.xml

Lines changed: 83 additions & 205 deletions
Large diffs are not rendered by default.

bld/namelist_files/namelist_definition_ctsm.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,11 @@ Full pathname datafile with fates parameters
962962
Full pathname of surface data file.
963963
</entry>
964964

965+
<entry id="hillslope_file" type="char*256" category="datasets"
966+
input_pathname="abs" group="clm_inparm" valid_values="" >
967+
Full pathname of hillslope data file.
968+
</entry>
969+
965970
<entry id="fsnowoptics" type="char*256" category="datasets"
966971
input_pathname="abs" group="clm_inparm" valid_values="" >
967972
SNICAR (SNow, ICe, and Aerosol Radiative model) optical data file name

bld/unit_testers/build-namelist_test.pl

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,13 @@ sub cat_and_create_namelistinfile {
12871287
);
12881288
foreach my $key ( keys(%failtest) ) {
12891289
print( "$key\n" );
1290+
my $var;
1291+
foreach $var ( "phys" , "options", "namelst" ) {
1292+
if ( not exists $failtest{$key}{$var} ) {
1293+
die "ERROR: Subkey $var does not exist for failtest $key\nERROR:Check if you spelled $var correctly\n"
1294+
}
1295+
}
1296+
12901297
&make_config_cache($failtest{$key}{"phys"});
12911298
my $options = $failtest{$key}{"options"};
12921299
my $namelist = $failtest{$key}{"namelst"};
@@ -1359,13 +1366,21 @@ sub cat_and_create_namelistinfile {
13591366
namelst=>"fsurdat='build-namelist_test.pl'",
13601367
phys=>"clm6_0",
13611368
},
1362-
"hillslope with init_interp"=>{ options=>"-bgc bgc -envxml_dir .",
1363-
namelst=>"use_init_interp=.true.,use_hillslope=.true.",
1369+
"hillslope with init_interp"=>{ options=>"--res 10x15 --bgc bgc --envxml_dir .",
1370+
namelst=>"use_init_interp=.true.,use_hillslope=.true.,hillslope_file='/dev/null'",
13641371
phys=>"clm6_0",
13651372
},
13661373
);
13671374
foreach my $key ( keys(%warntest) ) {
13681375
print( "$key\n" );
1376+
1377+
my $var;
1378+
foreach $var ( "phys" , "options", "namelst" ) {
1379+
if ( not exists $warntest{$key}{$var} ) {
1380+
die "ERROR: Subkey $var does not exist for warntest $key\nERROR:Check if you spelled $var correctly\n"
1381+
}
1382+
}
1383+
13691384
&make_config_cache($warntest{$key}{"phys"});
13701385
my $options = $warntest{$key}{"options"};
13711386
my $namelist = $warntest{$key}{"namelst"};
@@ -1595,6 +1610,14 @@ sub cat_and_create_namelistinfile {
15951610

15961611
foreach my $key ( keys(%finidat_files) ) {
15971612
print( "$key\n" );
1613+
1614+
my $var;
1615+
foreach $var ( "phys" , "atm_forc", "res", "bgc", "crop", "use_case", "start_ymd", "namelist" ) {
1616+
if ( not exists $finidat_files{$key}{$var} ) {
1617+
die "ERROR: Subkey $var does not exist for finidat_file $key\nERROR:Check if you spelled $var correctly\n"
1618+
}
1619+
}
1620+
15981621
my $phys = $finidat_files{$key}{'phys'};
15991622
print "physics = $phys\n";
16001623
&make_config_cache($phys);

cime_config/config_component.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<desc lnd="CLM45[%SP][%SP-VIC][%BGC][%BGC-CROP][%FATES][%BGCDV][%BGCDV-CROP]" >clm4.5:</desc>
1717
<desc lnd="CLM50[%SP][%SP-VIC][%SP-NOANTHRO][%BGC-NOANTHRO][%BGC][%BGC-CROP][%FATES][%BGCDV][%BGCDV-CROP][%BGC-CROP-CMIP6DECK][%BGC-CROP-CMIP6WACCMDECK][%NWP-SP][%NWP-BGC-CROP]">clm5.0:</desc>
1818
<desc lnd="CLM51[%SP][%SP-NOANTHRO][%BGC-NOANTHRO][%BGC][%BGC-CROP][%FATES][%FATES-SP][%NWP-SP][%NWP-BGC-CROP]">clm5.1:</desc>
19-
<desc lnd="CLM60[%SP][%SP-NOANTHRO][%BGC-NOANTHRO][%BGC][%BGC-CROP][%FATES][%FATES-SP][%NWP-SP][%NWP-BGC-CROP]">clm6.0:</desc>
19+
<desc lnd="CLM60[%SP][%SP-NOANTHRO][%BGC-NOANTHRO][%BGC][%BGC-CROP][%FATES][%FATES-SP][%BGC-CROP-CMIP6DECK][%BGC-CROP-CMIP6WACCMDECK][%NWP-SP][%NWP-BGC-CROP]">clm6.0:</desc>
2020
<desc option="SP" >Satellite phenology:</desc>
2121

2222
<desc option="SP-VIC" >Satellite phenology with VIC hydrology:</desc>
@@ -371,6 +371,10 @@
371371
<value grid="l%1.9x2.5" compset="_CLM50%[^_]*CMIP6DECK[%_]" >$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_nociso_deck</value>
372372
<value compset="_CLM50%[^_]*CMIP6WACCMDECK[%_]">$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_waccm_deck</value>
373373
<value grid="l%1.9x2.5" compset="_CLM50%[^_]*CMIP6WACCMDECK[%_]">$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_waccm_nociso_deck</value>
374+
<value compset="_CLM60%[^_]*CMIP6DECK[%_]" >$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_deck</value>
375+
<value grid="l%1.9x2.5" compset="_CLM60%[^_]*CMIP6DECK[%_]" >$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_nociso_deck</value>
376+
<value compset="_CLM60%[^_]*CMIP6WACCMDECK[%_]">$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_waccm_deck</value>
377+
<value grid="l%1.9x2.5" compset="_CLM60%[^_]*CMIP6WACCMDECK[%_]">$COMP_ROOT_DIR_LND/cime_config/usermods_dirs/cmip6_waccm_nociso_deck</value>
374378
</values>
375379
<group>run_component_ctsm</group>
376380
<file>env_case.xml</file>

cime_config/config_compsets.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,21 @@
200200
<alias>I1850Clm50BgcCropCmip6</alias>
201201
<lname>1850_DATM%GSWP3v1_CLM50%BGC-CROP-CMIP6DECK_SICE_SOCN_MOSART_SGLC_SWAV</lname>
202202
</compset>
203+
<compset>
204+
<alias>I1850Clm60BgcCropCmip6</alias>
205+
<lname>1850_DATM%GSWP3v1_CLM60%BGC-CROP-CMIP6DECK_SICE_SOCN_MOSART_SGLC_SWAV</lname>
206+
</compset>
203207

204208
<!-- Primarily for testing the CMIP6WACCMDECK compset option -->
205209
<!-- Use the CMIP6 version (clm5_0) -->
206210
<compset>
207211
<alias>I1850Clm50BgcCropCmip6waccm</alias>
208212
<lname>1850_DATM%GSWP3v1_CLM50%BGC-CROP-CMIP6WACCMDECK_SICE_SOCN_MOSART_SGLC_SWAV</lname>
209213
</compset>
214+
<compset>
215+
<alias>I1850Clm60BgcCropCmip6waccm</alias>
216+
<lname>1850_DATM%GSWP3v1_CLM60%BGC-CROP-CMIP6WACCMDECK_SICE_SOCN_MOSART_SGLC_SWAV</lname>
217+
</compset>
210218

211219
<!-- clm5_0 (CMIP6) version with BGC-Crop and CRU forcing -->
212220
<compset>

cime_config/testdefs/ExpectedTestFails.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@
135135
</phase>
136136
</test>
137137

138+
<test name="SMS_Ld10_D_Mmpi-serial.CLM_USRDAT.I1PtClm60Bgc.izumi_nag.clm-NEON-MOAB--clm-PRISM">
139+
<phase name="SHAREDLIB_BUILD">
140+
<status>FAIL</status>
141+
<issue>#2310</issue>
142+
</phase>
143+
<phase name="RUN">
144+
<status>FAIL</status>
145+
<issue>#2310</issue>
146+
</phase>
147+
</test>
148+
138149
<test name="SMS_Ld10_D_Mmpi-serial.CLM_USRDAT.I1PtClm60Fates.derecho_gnu.clm-FatesPRISM--clm-NEON-FATES-YELL">
139150
<phase name="SHAREDLIB_BUILD">
140151
<status>FAIL</status>
@@ -171,6 +182,13 @@
171182
</phase>
172183
</test>
173184

185+
<test name="SMS_Lm3_D_Mmpi-serial.1x1_brazil.I2000Clm50FatesCruRsGs.izumi_intel.clm-FatesColdHydro">
186+
<phase name="CREATE_NEWCASE">
187+
<status>FAIL</status>
188+
<issue>#2454</issue>
189+
</phase>
190+
</test>
191+
174192
<test name="SMS_Ld10_D_Mmpi-serial.CLM_USRDAT.I1PtClm60Fates.izumi_nag.clm-FatesFireLightningPopDens--clm-NEON-FATES-NIWO">
175193
<phase name="SHAREDLIB_BUILD">
176194
<status>FAIL</status>
@@ -245,13 +263,6 @@
245263
</phase>
246264
</test>
247265

248-
<test name="SMS_D_Ld5.5x5_amazon.I1850Clm51Bgc.derecho_gnu.clm-HillslopeC">
249-
<phase name="RUN">
250-
<status>FAIL</status>
251-
<issue>#2423</issue>
252-
</phase>
253-
</test>
254-
255266
<test name="ERS_D_Ld15.f45_f45_mg37.I2000Clm50FatesRs.derecho_intel.clm-FatesColdTwoStream">
256267
<phase name="COMPARE_base_rest">
257268
<status>FAIL</status>
@@ -280,6 +291,13 @@
280291
</phase>
281292
</test>
282293

294+
<test name="ERS_D_Ld30.f45_f45_mg37.I2000Clm50FatesCruRsGs.derecho_intel.clm-FatesColdLandUse">
295+
<phase name="SHAREDLIB_BUILD">
296+
<status>FAIL</status>
297+
<issue>#2810</issue>
298+
</phase>
299+
</test>
300+
283301
<!-- Other submodule test list failures (MOSART, RTM, etc. -->
284302

285303
<test name="SMS_Lh3.f10_f10_mg37.I2000Clm51Sp.derecho_intel.mosart-clmAccelSpinupIgnoreWarn">

0 commit comments

Comments
 (0)