forked from ESCOMP/CTSM
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into noresm
- Loading branch information
Showing
93 changed files
with
2,569 additions
and
677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
cime_config/testdefs/testmods_dirs/clm/FatesColdSeedDisp/README
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Testing FATES cross grid seed dispersal is activated by enabling the | ||
namelist switch option fates_seeddisp_cadence as well as providing reasonable | ||
values to the fates parameter file for the following variables: | ||
|
||
fates_seed_dispersal_fraction | ||
fates_seed_dispersal_max_dist | ||
fates_seed_dispersal_pdf_scale | ||
fates_seed_dispersal_pdf_shape | ||
|
||
Given that the default fates parameter file has the above variables as unset, | ||
a custom fates parameter file must be supplied to appropriately test this mode. | ||
This testmod itself addresses CTSM issue 2151: https://github.com/ESCOMP/CTSM/issues/2151 | ||
Note that to avoid exceeding the filename string length maximu, the parameter | ||
file generated on the fly is placed in the $SRCROOT/src/fates/parameter_files | ||
directory. This may still run into problems is the $SRCROOT string is too long. | ||
|
||
The max_dist value will impact the size of the 'neighborhood' of gridcells | ||
that fates will attempt to distribute seeds to. To limit the neighborhood to | ||
something tractable for a regression test, the user_nl_clm file points to a | ||
specific fates parameter file that was generated to work with a 5x5_amazon | ||
resolution. | ||
|
||
The main downside of this method is that this file will require a custom update | ||
for every fates parameter file API update. Addressing CTSM issue #2126 will alleviate | ||
this issue as it will provide the capability to build the fates parameter file on | ||
the fly which with the appropriate values for this test. |
1 change: 1 addition & 0 deletions
1
cime_config/testdefs/testmods_dirs/clm/FatesColdSeedDisp/include_user_mods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../FatesCold |
11 changes: 11 additions & 0 deletions
11
cime_config/testdefs/testmods_dirs/clm/FatesColdSeedDisp/shell_commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SRCDIR=`./xmlquery SRCROOT --value` | ||
CASEDIR=`./xmlquery CASEROOT --value` | ||
FATESROOT=$SRCDIR/src/fates/ | ||
FATESPARAMFILE=$FATESROOT/parameter_files/fates_params_seeddisp_4x5.nc | ||
|
||
ncgen -o $FATESPARAMFILE $FATESROOT/parameter_files/fates_params_default.cdl | ||
|
||
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_fraction --val 0.2 --allpfts | ||
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_max_dist --val 2500000 --allpfts | ||
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_pdf_scale --val 1e-05 --allpfts | ||
$FATESROOT/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_seed_dispersal_pdf_shape --val 0.1 --allpfts |
3 changes: 3 additions & 0 deletions
3
cime_config/testdefs/testmods_dirs/clm/FatesColdSeedDisp/user_nl_clm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fates_paramfile = '$SRCROOT/src/fates/parameter_files/fates_params_seeddisp_4x5.nc' | ||
fates_seeddisp_cadence = 1 | ||
hist_fincl1 = 'FATES_SEEDS_IN_GRIDCELL_PF', 'FATES_SEEDS_OUT_GRIDCELL_PF' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
cime_config/testdefs/testmods_dirs/clm/sowingWindows/include_user_mods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../default |
5 changes: 5 additions & 0 deletions
5
cime_config/testdefs/testmods_dirs/clm/sowingWindows/user_nl_clm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
stream_fldFileName_swindow_start = '/glade/p/cesmdata/cseg/inputdata/lnd/clm2/cropdata/calendars/processed/swindow_starts_ggcmi_crop_calendar_phase3_v1.01.2000-2000.20231005_145103.nc' | ||
stream_fldFileName_swindow_end = '/glade/p/cesmdata/cseg/inputdata/lnd/clm2/cropdata/calendars/processed/swindow_ends_ggcmi_crop_calendar_phase3_v1.01.2000-2000.20231005_145103.nc' | ||
stream_meshfile_cropcal = '/glade/p/cesmdata/cseg/inputdata/share/meshes/360x720_120830_ESMFmesh_c20210507_cdf5.nc' | ||
stream_year_first_cropcal = 2000 | ||
stream_year_last_cropcal = 2000 |
Oops, something went wrong.