-
Notifications
You must be signed in to change notification settings - Fork 371
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 'rgknox/lnd/fates-twostream'(PR #6279)
This set of changes enables compatibility with FATES API 33, which brings in two-stream radiation for vegetation canopies. [nonBfB] for FATES
- Loading branch information
Showing
10 changed files
with
51 additions
and
7 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
6 changes: 6 additions & 0 deletions
6
components/elm/cime_config/testdefs/testmods_dirs/elm/fates_cold/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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
./xmlchange TEST_MEMLEAK_TOLERANCE=0.75 | ||
./xmlchange NTHRDS=1 | ||
|
||
# Change PIO settings as temporary fix for #6316 | ||
if [ `./xmlquery --value LND_GRID` == 1.9x2.5 ]; then | ||
./xmlchange PIO_NUMTASKS=4 | ||
./xmlchange PIO_STRIDE=-999 | ||
fi |
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
19 changes: 19 additions & 0 deletions
19
components/elm/cime_config/testdefs/testmods_dirs/elm/fates_cold_twostream/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,19 @@ | ||
Testing FATES two-stream radiation scheme is activated by switching the fates_rad_model | ||
parameter from 1 to 2. This is all that is needed, both radiation schemes | ||
1) Norman and 2) two-stream use the same optical parameters. | ||
|
||
fates_rad_model | ||
|
||
Note that to avoid exceeding the filename string length maximum, 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. | ||
|
||
Like the test with seed dispersal activation, the main downside of this method is | ||
that this file will require a custom update for every fates parameter file API update. | ||
Allowing the HLM to generate the file at runtime via buildnamelist step | ||
will provide the capability to build the fates parameter file on | ||
the fly which with the appropriate values for this test. | ||
|
||
Note that the test as currently designed is not machine agnostic as it requires | ||
specific shell commands for enabling the workflow to have access to ncgen. Currently | ||
this test is only usable on perlmutter. |
1 change: 1 addition & 0 deletions
1
components/elm/cime_config/testdefs/testmods_dirs/elm/fates_cold_twostream/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 @@ | ||
../fates_cold |
15 changes: 15 additions & 0 deletions
15
components/elm/cime_config/testdefs/testmods_dirs/elm/fates_cold_twostream/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,15 @@ | ||
module load e4s | ||
spack env activate gcc | ||
spack load nco | ||
|
||
SRCDIR=`./xmlquery SRCROOT --value` | ||
CASEDIR=`./xmlquery CASEROOT --value` | ||
FATESDIR=$SRCDIR/components/elm/src/external_models/fates | ||
FATESPARAMFILE=$CASEDIR/fates_params_twostream.nc | ||
|
||
ncgen -o $FATESPARAMFILE $FATESDIR/parameter_files/fates_params_default.cdl | ||
|
||
$FATESDIR/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_rad_model --val 2 --allpfts | ||
|
||
spack unload nco | ||
module unload e4s |
1 change: 1 addition & 0 deletions
1
components/elm/cime_config/testdefs/testmods_dirs/elm/fates_cold_twostream/user_nl_elm
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 @@ | ||
fates_paramfile = '$CASEROOT/fates_params_twostream.nc' |
Submodule fates
updated
37 files
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