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

Get single point surface datasets from subset_data rather than mksurfdata #1812

Merged
merged 122 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
1f01f3d
Add live course root maintence respiration to root respiration fixing…
ekluzek Mar 22, 2022
6f97bb5
Start working on the makefile
ekluzek Mar 28, 2022
1d840de
Merge tag 'ctsm5.1.dev088' into fsurdat_4_1x1_from_subset
ekluzek Mar 28, 2022
384d317
Set zetamaxstable to 2 for ctsm5_1 for all cases
ekluzek Jul 12, 2022
08f556b
Apply same zetamaxstable limit for biomass heat storage as for everyt…
ekluzek Jul 12, 2022
0f39e0e
Set zetmaxstable to 2.0 when BHS is on
ekluzek Jul 12, 2022
91700ad
Merge tag 'ctsm5.1.dev103' into zetamaxstableconsistent
ekluzek Jul 14, 2022
9545d3e
Merge tag 'ctsm5.1.dev103' into fsurdat_4_1x1_from_subset
ekluzek Jul 14, 2022
8ed188a
Fix typo @olyson pointed out
ekluzek Jul 14, 2022
c3bb13d
Get the 2000 1x1_brazil subset_data case working
ekluzek Jul 14, 2022
50c941d
Add ability to change the default config file for the default filenam…
ekluzek Jul 14, 2022
d93b414
Get subset_data single point sites working
ekluzek Jul 15, 2022
5eabd91
Update to version that has the fix for coszen
ekluzek Jul 15, 2022
44a44a5
Update to version of cdeps that fixes the ZBOT read issue
ekluzek Jul 15, 2022
ecc5219
Merge tag 'ctsm5.1.dev114' into fsurdat_4_1x1_from_subset
ekluzek Nov 20, 2022
e584e0b
Merge tag 'ctsm5.1.dev115' into fsurdat_4_1x1_from_subset
ekluzek Dec 6, 2022
cb224da
Convert variable name to snake_case so that pylint passes
ekluzek Dec 12, 2022
5131848
Add a test to fsurdat_modifier sys tester that if you don't give the …
ekluzek Dec 13, 2022
4c3339f
Add a test for a config file that doesn't exist that fails
ekluzek Dec 13, 2022
df5ad3e
Add a check for the config file not existing
ekluzek Dec 13, 2022
c08ce1c
Add a check for an empty file failing gracefully
ekluzek Dec 13, 2022
0c3a179
Add check for a config file that does not have the expected main sect…
ekluzek Dec 13, 2022
a4a35de
Add test for short config file and add all needed settings in the con…
ekluzek Dec 13, 2022
a4b7173
Remove the output file created after the test
ekluzek Dec 13, 2022
f0fdd2b
Add fsurdat_modifier_arg_process method for argument processing so it…
ekluzek Dec 17, 2022
5fe2dbd
Change the name of the main section for fsurdat_modifier
ekluzek Dec 17, 2022
41b537e
Add two failing tests one to set an input file that does not exist, a…
ekluzek Dec 17, 2022
098153d
Add ability to set fsurdat_in and fsurdat_out on command line, get te…
ekluzek Dec 20, 2022
32a8822
Add tests when in and out fsurdat files are specified in both the cmd…
ekluzek Dec 20, 2022
5368ae7
Get tests of specifying both on command line and in config file working
ekluzek Dec 21, 2022
40478ec
Addd booleans about handling new optional sections
ekluzek Dec 21, 2022
d05b3ff
Start adding handling of the optional sections, and add a simple test…
ekluzek Dec 21, 2022
3683a91
More work on processing subgrid fraction and variable list sections
ekluzek Dec 21, 2022
8514bd3
Add unit tester for fsurdat_modifier subroutines
ekluzek Dec 22, 2022
cd202a0
Add a out of range test
ekluzek Dec 22, 2022
5efda44
Add a check for valid variables in read_subgrid and get it working
ekluzek Dec 22, 2022
9570425
Add fail tests when the optional sections have been removed
ekluzek Dec 22, 2022
c9bb373
Add test and check that optional sections aren't there if they aren't…
ekluzek Dec 22, 2022
891e130
Get working in black and pylint, utest and stest working, add set_var…
ekluzek Dec 29, 2022
a9873c7
Add two tests that check that PCT_* variables for subgrid add to a hu…
ekluzek Dec 30, 2022
6e5731f
Get the two failing tests to work
ekluzek Dec 30, 2022
c88e071
Add a test to make sure a variable read in the variable list section …
ekluzek Dec 30, 2022
e06dd52
Get the test to pass now
ekluzek Dec 30, 2022
16a771b
Add failing test for trying to set one of the monthly variables in th…
ekluzek Dec 30, 2022
63e19be
Get latest test to work
ekluzek Dec 30, 2022
8436624
Add std_elev and fmax to the list of variables to not set in the vari…
ekluzek Dec 30, 2022
8390289
Black and lint update, add tests for lev1 and lev2 variables for set_…
ekluzek Dec 30, 2022
df2d2d2
Add uppercase variables for testing, and add several tests for check_…
ekluzek Dec 30, 2022
9b2ed22
Add a test for 100 glacier for subgrid and a sum of special landunits…
ekluzek Dec 30, 2022
b23e17e
Add back in some tests for some multidimensional urban arrarys to the…
ekluzek Dec 31, 2022
7ece08f
Add some more variables to the list of variables that can't be change…
ekluzek Dec 31, 2022
bb7a982
Start adding handling of numurbl so that PCT_URBAN can be recognized …
ekluzek Dec 31, 2022
e8f0b62
List out two subroutines so will pass lint check, now make all works,…
ekluzek Jan 1, 2023
cc31204
Add something that says all target is successful
ekluzek Jan 1, 2023
a268e97
Require PCT_URBAN to be a list of numurbl values, start adding a new …
ekluzek Jan 2, 2023
e317a6c
Add some tests that the list size of PCT_URBAN is correct and will fa…
ekluzek Jan 2, 2023
50878c8
Add a new unit tester for the config_utils module
ekluzek Jan 2, 2023
1f7d82a
Start adding tests for get_config_value_or_array to unit testing that…
ekluzek Jan 3, 2023
a82e49f
Implement get_config_value_or_array and get current tests passing
ekluzek Jan 3, 2023
d393341
Add a test for get_config_value_or_array for lists of size three
ekluzek Jan 3, 2023
1bcbec8
Get testing for get_config_value_or_array for lists working, and chan…
ekluzek Jan 4, 2023
32e303e
Assume that 3D and higher arrays come in as a list, add more checks t…
ekluzek Jan 6, 2023
4836ce3
Make the opt_section tests to 100% urban and add two higher level dim…
ekluzek Jan 7, 2023
b9437fe
Add testing for 3D and 4D optional data, and get it working correctly
ekluzek Jan 14, 2023
d4fbadb
Run through black
ekluzek Jan 14, 2023
e30022a
Start adding a test for 1x1_mexicocity, it currently fails as expecte…
ekluzek Jan 14, 2023
62b9a3f
More work on 1x1_mexicocity test, add more variables, stest still fai…
ekluzek Jan 14, 2023
9be40c6
Set idealized to False for the subgrid and varlist tests, and to true…
ekluzek Jan 14, 2023
16d94b0
Add a check that makes sure that dom_pft and idealized aren't on at t…
ekluzek Jan 14, 2023
ac7c23e
Add some consistency checking tests that fail as expected
ekluzek Jan 15, 2023
be956b6
Add a subroutine to read the control variables, that can also do erro…
ekluzek Jan 15, 2023
a23e03f
Use read_option_control in the test
ekluzek Jan 15, 2023
f28f37b
Move read of dom_pft to read_option_control and get all the unit test…
ekluzek Jan 15, 2023
3da3388
Add options to allow some options if they are flagged, and only abort…
ekluzek Jan 15, 2023
49889d4
Add test files for the system testing for creation of urban surfdata…
ekluzek Jan 15, 2023
df014ed
Add a check_args method for subset_data and some testing for it
ekluzek Jan 19, 2023
c8dee88
Remove parser from args of check_args, and add two fail tests for che…
ekluzek Jan 19, 2023
0178ca7
Add a check that the entered defaults config file exista and a test f…
ekluzek Jan 19, 2023
50b5fd9
Add --out-surface option so you can specify the output surface datase…
ekluzek Jan 19, 2023
a41831c
Add a check that out-surface can not be given if create-surface is no…
ekluzek Jan 19, 2023
3b841e5
Add test to make sure if a file exists and overwrite isn't active tha…
ekluzek Jan 19, 2023
8a46808
Add error check for out_surface that exists without overwrite, utest …
ekluzek Jan 19, 2023
53af6f9
Have the defaults file read in the testinputs directory, run through …
ekluzek Jan 19, 2023
685c2b1
Check for fsurf_out is None when out-surface not set and value given …
ekluzek Jan 19, 2023
9f79c7b
Add fsurf_out to setup_files returned dictionary, set to None, unless…
ekluzek Jan 19, 2023
eb7e94f
Specify the filename if out_surface is given, otherwise do things as …
ekluzek Jan 19, 2023
a74ac52
Add capability to do the urban single point sites
ekluzek Jan 19, 2023
666d89c
Add modify file for mexicocity
ekluzek Jan 19, 2023
e3a59fe
A little more documentation comments on the modify fsurdat config files
ekluzek Jan 19, 2023
f933d51
Add in the other two urban surface datasets
ekluzek Jan 20, 2023
85efdc5
Respond to @slevisconsulting review with changes asked for
ekluzek Jan 20, 2023
3293ef4
Get test that fails if overwrite not selected and surface file is nam…
ekluzek Jan 20, 2023
a7d672e
Run through black
ekluzek Jan 20, 2023
040555c
Change name of --file option to subset_data to --cfg-file option to m…
ekluzek Jan 20, 2023
dacc5a5
Add silent option resolving #1941
ekluzek Jan 21, 2023
53f3b7a
Update python design doc
ekluzek Jan 22, 2023
2d607d9
Remove the single point mksurfdata tests as we are now using subset_data
ekluzek Jan 22, 2023
02117d6
Remove the single point mksurfdata and mkmapdata test files
ekluzek Jan 22, 2023
df5e517
Remove another test that was removed from the master list
ekluzek Jan 22, 2023
484f490
Fix for #1942 so that conda environment is just activated, but not set
ekluzek Jan 22, 2023
ce30345
Update MOSART so that it sends negative flow to river outlets by default
ekluzek Jan 22, 2023
fedd4a6
Add note that \$RM uses force option (\-f) so it does not generate an…
ekluzek Jan 22, 2023
8a96cc7
Turn on silent for subset_data, move comment about remove so it isn't…
ekluzek Jan 22, 2023
2aa7566
Remove the temporary files for the urban cases
ekluzek Jan 23, 2023
7ada54f
Add some info level logger output that will be turned on with the ver…
ekluzek Jan 23, 2023
59d2dff
Replace the single point surface datasets with the newly generated ones
ekluzek Jan 23, 2023
c92edb8
Fix issues with 1x1_brazil fsurdat/landuse.timeseries files
ekluzek Jan 23, 2023
f49a755
Always use --crop for the subset options, so that the 78pft dataset i…
ekluzek Jan 23, 2023
9b962c0
Increase size of PCT_CFT array to have 64 crop CFT's so that we can u…
ekluzek Jan 23, 2023
5d108b4
Update single point datasets
ekluzek Jan 23, 2023
edfde60
So that resolution isn't done twice, explicitly add f09 resolution to…
ekluzek Jan 23, 2023
1091710
Merge tag 'ctsm5.1.dev115' into zetamaxstableconsistent
ekluzek Jan 23, 2023
71c233e
Merge remote-tracking branch 'ekluzek/zetamaxstableconsistent' into f…
ekluzek Jan 23, 2023
1be7aa2
Merge remote-tracking branch 'escomp/master' into fsurdat_4_1x1_from_…
ekluzek Jan 23, 2023
42709c2
Add a test for the --overwrite option which isn't added yet, so the t…
ekluzek Jan 24, 2023
050f110
Handle overwrite option and get the test working
ekluzek Jan 24, 2023
5c2b5b6
Turn options needed for the system test so that it will work
ekluzek Jan 24, 2023
22fe11f
Replace the RM with the use of the overwrite option for fsurdat_modifier
ekluzek Jan 25, 2023
b9ab8e0
Spin off read_cfg_required_basic_opts to make lint happy
ekluzek Jan 25, 2023
f4e9ea8
Check for existance before removing in the test, it will only be remo…
ekluzek Jan 25, 2023
c04e89f
Make sure the read_ subroutines that are reading the config file cons…
ekluzek Jan 25, 2023
6008d28
Update change files
ekluzek Jan 26, 2023
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
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ required = True
local_path = components/mosart
protocol = git
repo_url = https://github.com/ESCOMP/MOSART
tag = mosart1_0_47
tag = mosart1_0_48
required = True

[mizuRoute]
Expand Down
20 changes: 13 additions & 7 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1687,11 +1687,6 @@ sub process_namelist_inline_logic {
#############################################
setup_logic_rooting_profile($opts, $nl_flags, $definition, $defaults, $nl);

#############################################
# namelist group: friction_velocity #
#############################################
setup_logic_friction_vel($opts, $nl_flags, $definition, $defaults, $nl);

#############################
# namelist group: cngeneral #
#############################
Expand All @@ -1711,6 +1706,11 @@ sub process_namelist_inline_logic {
#############################################
setup_logic_canopyfluxes($opts, $nl_flags, $definition, $defaults, $nl);

##########################################################
# namelist group: friction_velocity (after canopyfluxes) #
##########################################################
setup_logic_friction_vel($opts, $nl_flags, $definition, $defaults, $nl);

#############################################
# namelist group: canopyhydrology_inparm #
#############################################
Expand Down Expand Up @@ -3898,10 +3898,11 @@ sub setup_logic_rooting_profile {
#-------------------------------------------------------------------------------

sub setup_logic_friction_vel {
#
# Must be after canopyfluxes so that use_biomass_heat_storage will be set
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'zetamaxstable' );
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'zetamaxstable',
'use_biomass_heat_storage'=>$nl_flags->{'use_biomass_heat_storage'}, 'phys'=>$nl_flags->{'phys'} );
}

#-------------------------------------------------------------------------------
Expand All @@ -3926,6 +3927,11 @@ sub setup_logic_canopyfluxes {
if ( &value_is_true($nl->get_value('use_biomass_heat_storage') ) && &value_is_true( $nl_flags->{'use_fates'}) ) {
$log->fatal_error('use_biomass_heat_storage can NOT be set to true when fates is on');
}
if ( &value_is_true($nl->get_value('use_biomass_heat_storage')) ) {
$nl_flags->{'use_biomass_heat_storage'} = ".true.";
} else {
$nl_flags->{'use_biomass_heat_storage'} = ".false.";
}
}

#-------------------------------------------------------------------------------
Expand Down
51 changes: 24 additions & 27 deletions bld/namelist_files/namelist_defaults_ctsm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
<baseflow_scalar phys="clm4_5" lower_boundary_condition="2">1.d-2</baseflow_scalar>

<!-- Friction velocity -->
<zetamaxstable phys="clm4_5" >2.0d00</zetamaxstable>
<zetamaxstable phys="clm5_0" >0.5d00</zetamaxstable>
<zetamaxstable phys="clm5_1" >0.5d00</zetamaxstable>
<zetamaxstable use_biomass_heat_storage=".true." >2.0d00</zetamaxstable>
<zetamaxstable phys="clm4_5" >2.0d00</zetamaxstable>
<zetamaxstable phys="clm5_0" >0.5d00</zetamaxstable>
<zetamaxstable phys="clm5_1" >0.5d00</zetamaxstable>

<!-- atm2lnd defaults -->
<repartition_rain_snow phys="clm5_1" >.true.</repartition_rain_snow>
Expand Down Expand Up @@ -1055,10 +1056,11 @@ lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_ne16np4_hist_16pfts_Irrig_CMIP6
<fsurdat hgrid="0.125nldas2" sim_year="2000" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/surfdata_0.125nldas2_hist_16pfts_Irrig_CMIP6_simyr2005_c190412.nc</fsurdat>

<fsurdat hgrid="1x1_brazil" sim_year="2000">
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_brazil_hist_78pfts_CMIP6_simyr2000_c230123.nc</fsurdat>

<fsurdat hgrid="5x5_amazon" sim_year="2000" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_5x5_amazon_hist_16pfts_Irrig_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_brazil" sim_year="2000" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_brazil_hist_16pfts_Irrig_CMIP6_simyr2000_c190214.nc</fsurdat>

<!-- Needed for SCAM (Single Column Atmosphere Model) -->
<fsurdat hgrid="64x128" sim_year="2000" use_crop=".false." irrigate=".true."
Expand All @@ -1085,10 +1087,10 @@ lnd/clm2/surfdata_map/release-clm5.0.24/surfdata_0.125x0.125_hist_78pfts_CMIP6_s
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_10x15_hist_78pfts_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="4x5" sim_year="2000" use_crop=".true." >
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_4x5_hist_78pfts_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_numaIA" sim_year="2000" use_crop=".true." >
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_numaIA_hist_78pfts_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_smallvilleIA" sim_year="2000" use_crop=".true." >
lnd/clm2/surfdata_map/ctsm1.0.dev094-2-g633be0eb/surfdata_1x1_smallvilleIA_hist_78pfts_CMIP6_simyr2000_c200521.nc</fsurdat>
<fsurdat hgrid="1x1_numaIA" sim_year="2000" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_numaIA_hist_78pfts_CMIP6_simyr2000_c230123.nc</fsurdat>
<fsurdat hgrid="1x1_smallvilleIA" sim_year="2000" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_smallvilleIA_hist_78pfts_CMIP6_simyr2000_c230123.nc</fsurdat>

<fsurdat hgrid="ne16np4" sim_year="2000" use_crop=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_ne16np4_hist_78pfts_CMIP6_simyr2000_c190214.nc</fsurdat>
Expand All @@ -1112,12 +1114,12 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.ARCTIC.ne30x4_hist_78pft
lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts_CMIP6_simyr2000_c200426.nc</fsurdat>

<!-- 100% Urban single-point datasets (only for sim-year=2000) -->
<fsurdat hgrid="1x1_vancouverCAN" sim_year="2000" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_vancouverCAN_hist_16pfts_Irrig_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_mexicocityMEX" sim_year="2000" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_mexicocityMEX_hist_16pfts_Irrig_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_urbanc_alpha" sim_year="2000" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_urbanc_alpha_hist_16pfts_Irrig_CMIP6_simyr2000_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_vancouverCAN" sim_year="2000" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_vancouverCAN_hist_78pfts_CMIP6_simyr2000_c230123.nc</fsurdat>
<fsurdat hgrid="1x1_mexicocityMEX" sim_year="2000" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_mexicocityMEX_hist_78pfts_CMIP6_simyr2000_c230123.nc</fsurdat>
<fsurdat hgrid="1x1_urbanc_alpha" sim_year="2000" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_urbanc_alpha_hist_78pfts_CMIP6_simyr2000_c230123.nc</fsurdat>

<!-- for pre-industrial simulations - year 1850 without crop -->
<fsurdat hgrid="48x96" sim_year="1850" use_crop=".false." irrigate=".true.">
Expand All @@ -1132,9 +1134,6 @@ lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_10x15_hist_16pfts_Irrig_CMIP6_s
<fsurdat hgrid="4x5" sim_year="1850" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_4x5_hist_16pfts_Irrig_CMIP6_simyr1850_c190214.nc</fsurdat>

<fsurdat hgrid="1x1_brazil" sim_year="1850" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_brazil_hist_16pfts_Irrig_CMIP6_simyr1850_c190214.nc</fsurdat>

<fsurdat hgrid="ne30np4" sim_year="1850" use_crop=".false." irrigate=".true.">
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_ne30np4_hist_16pfts_Irrig_CMIP6_simyr1850_c190303.nc</fsurdat>

Expand All @@ -1160,13 +1159,13 @@ lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1.9x2.5_hist_78pfts_CMIP6_simyr
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_10x15_hist_78pfts_CMIP6_simyr1850_c190214.nc</fsurdat>
<fsurdat hgrid="4x5" sim_year="1850" use_crop=".true." >
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_4x5_hist_78pfts_CMIP6_simyr1850_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_smallvilleIA" sim_year="1850" use_crop=".true." >
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_smallvilleIA_hist_78pfts_CMIP6_simyr1850_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_numaIA" sim_year="1850" use_crop=".true." >
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_numaIA_hist_78pfts_CMIP6_simyr1850_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_smallvilleIA" sim_year="1850" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_smallvilleIA_hist_78pfts_CMIP6_simyr1850_c230123.nc</fsurdat>
<fsurdat hgrid="1x1_numaIA" sim_year="1850" >
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_numaIA_hist_78pfts_CMIP6_simyr1850_c230123.nc</fsurdat>

<fsurdat hgrid="1x1_brazil" sim_year="1850" use_crop=".true." >
lnd/clm2/surfdata_map/release-clm5.0.18/surfdata_1x1_brazil_hist_78pfts_CMIP6_simyr1850_c190214.nc</fsurdat>
<fsurdat hgrid="1x1_brazil" sim_year="1850">
lnd/clm2/surfdata_map/ctsm5.1.dev116/surfdata_1x1_brazil_hist_78pfts_CMIP6_simyr1850_c230123.nc</fsurdat>

<fsurdat hgrid="ne30np4" sim_year="1850" use_crop=".true.">
lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne30np4_hist_78pfts_CMIP6_simyr1850_c200426.nc</fsurdat>
Expand Down Expand Up @@ -1210,8 +1209,6 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts
<flanduse_timeseries hgrid="48x96" sim_year_range="1850-2000" irrigate=".true."
use_crop=".false." >lnd/clm2/surfdata_map/release-clm5.0.18/landuse.timeseries_48x96_hist_16pfts_Irrig_CMIP6_simyr1850-2015_c190214.nc</flanduse_timeseries>

<flanduse_timeseries hgrid="1x1_brazil" sim_year_range="1850-2000" irrigate=".true."
use_crop=".false." >lnd/clm2/surfdata_map/landuse.timeseries_1x1_brazil_hist_16pfts_Irrig_CMIP6_simyr1850-2015_c170824.nc</flanduse_timeseries>

<flanduse_timeseries hgrid="ne30np4" sim_year_range="1850-2000" irrigate=".true."
use_crop=".false." >lnd/clm2/surfdata_map/landuse.timeseries_ne30np4_hist_16pfts_Irrig_CMIP6_simyr1850-2015_c170824.nc</flanduse_timeseries>
Expand All @@ -1232,7 +1229,7 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts
use_crop=".true." >lnd/clm2/surfdata_map/landuse.timeseries_48x96_hist_78pfts_CMIP6_simyr1850-2015_c170824.nc</flanduse_timeseries>

<flanduse_timeseries hgrid="1x1_brazil" sim_year_range="1850-2000"
use_crop=".true." >lnd/clm2/surfdata_map/landuse.timeseries_1x1_brazil_hist_78pfts_CMIP6_simyr1850-2015_c170824.nc</flanduse_timeseries>
>lnd/clm2/surfdata_map/ctsm5.1.dev116/landuse.timeseries_1x1_brazil_hist_78pfts_CMIP6_simyr1850-2015_c230123.nc</flanduse_timeseries>
<flanduse_timeseries hgrid="1x1_numaIA" sim_year_range="1850-2000"
use_crop=".true." >lnd/clm2/surfdata_map/landuse.timeseries_1x1_numaIA_hist_78pfts_CMIP6_simyr1850-2015_c170917.nc</flanduse_timeseries>

Expand Down
22 changes: 11 additions & 11 deletions bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -319,22 +319,22 @@ sub cat_and_create_namelistinfile {
foreach my $driver ( "mct", "nuopc" ) {
print " For $driver driver\n\n";
# configuration, structure, irrigate, verbose, clm_demand, ssp_rcp, test, sim_year, use_case
foreach my $options ( "-configuration nwp",
"-structure fast",
"-namelist '&a irrigate=.true./'", "-verbose", "-ssp_rcp SSP1-2.6", "-test", "-sim_year 1850",
"-namelist '&a use_lai_streams=.true.,use_soil_moisture_streams=.true./'",
"-use_case 1850_control",
foreach my $options ( "-res 0.9x1.25 -configuration nwp",
"-res 0.9x1.25 -structure fast",
"-res 0.9x1.25 -namelist '&a irrigate=.true./'", "-res 0.9x1.25 -verbose", "-res 0.9x1.25 -ssp_rcp SSP1-2.6", "-res 0.9x1.25 -test", "-res 0.9x1.25 -sim_year 1850",
"-res 0.9x1.25 -namelist '&a use_lai_streams=.true.,use_soil_moisture_streams=.true./'",
"-res 0.9x1.25 -use_case 1850_control",
"-res 1x1pt_US-UMB -clm_usr_name 1x1pt_US-UMB -namelist '&a fsurdat=\"/dev/null\"/'",
"-res 1x1_brazil",
"-clm_start_type startup", "-namelist '&a irrigate=.false./' -crop -bgc bgc",
"-envxml_dir . -infile myuser_nl_clm",
"-ignore_ic_date -clm_start_type branch -namelist '&a nrevsn=\"thing.nc\"/' -bgc bgc -crop",
"-clm_start_type branch -namelist '&a nrevsn=\"thing.nc\",use_init_interp=T/'",
"-ignore_ic_date -clm_start_type startup -namelist '&a finidat=\"thing.nc\"/' -bgc bgc -crop",
"-res 0.9x1.25 -clm_start_type startup", "-namelist '&a irrigate=.false./' -crop -bgc bgc",
"-res 0.9x1.25 -infile myuser_nl_clm",
"-res 0.9x1.25 -ignore_ic_date -clm_start_type branch -namelist '&a nrevsn=\"thing.nc\"/' -bgc bgc -crop",
"-res 0.9x1.25 -clm_start_type branch -namelist '&a nrevsn=\"thing.nc\",use_init_interp=T/'",
"-res 0.9x1.25 -ignore_ic_date -clm_start_type startup -namelist '&a finidat=\"thing.nc\"/' -bgc bgc -crop",
) {
my $file = $startfile;
&make_env_run();
my $base_options = "-res 0.9x1.25 -envxml_dir . -driver $driver";
my $base_options = "-envxml_dir . -driver $driver";
if ( $driver eq "mct" ) {
$base_options = "$base_options -lnd_frac $DOMFILE";
} else {
Expand Down
5 changes: 4 additions & 1 deletion cime_config/SystemTests/fsurdatmodifyctsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ def __init__(self, case):
self._cfg_file_path = os.path.join(self._get_caseroot(),
'modify_fsurdat.cfg')

logger.info(" create config file to modify")
self._create_config_file()
logger.info(" run modify_fsurdat")
self._run_modify_fsurdat()
logger.info(" modify user_nl files")
self._modify_user_nl()
with open('done_FSURDATMODIFYCTSM_setup.txt', 'w') as fp:
pass
Expand All @@ -68,7 +71,7 @@ def _run_modify_fsurdat(self):
# Need to specify a specific python version that has the required
# dependencies
python_path = _get_python_path()
subprocess.check_call([python_path, tool_path, self._cfg_file_path])
subprocess.check_call([python_path, tool_path, self._cfg_file_path, "--verbose", "--overwrite", "--allow_ideal_and_include_non_veg"])

def _modify_user_nl(self):
append_to_user_nl_files(caseroot = self._get_caseroot(),
Expand Down
Loading