forked from ESCOMP/CTSM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from samsrabin/fates-auto-params-ssr
Improvements and fix for fates-auto-params
- Loading branch information
Showing
9 changed files
with
116 additions
and
24 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
11 changes: 1 addition & 10 deletions
11
cime_config/testdefs/testmods_dirs/clm/Fates/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,16 +1,7 @@ | ||
./xmlchange CLM_BLDNML_OPTS="-no-megan" --append | ||
./xmlchange BFBFLAG="TRUE" | ||
|
||
CASE=`./xmlquery CASE --value` | ||
SRCROOT=`./xmlquery SRCROOT --value` | ||
|
||
#CIME_OUTPUT_ROOT=`./xmlquery CIME_OUTPUT_ROOT --value` | ||
# CASEDIR=`./xmlquery CASEROOT --value` | ||
# env_test.xml IS NOT AVAILABLE TESTROOT=`./xmlquery TESTROOT --value` | ||
# env_test.xml IS NOT AVAILABLE TESTID=`./xmlquery TESTID --value` | ||
# env_test.xml IS NOT AVAILABLE TESTARGV=`./xmlquery TEST_ARGV --value` | ||
|
||
FATESDIR=$SRCROOT/src/fates | ||
FATESPARAMFILE=${SRCROOT}/src/fates/parameter_files/binaries/${CASE}-params.nc | ||
. "${SRCROOT}"/cime_config/testdefs/testmods_dirs/clm/_scripts/get_fates_shell_commands_vars.sh | ||
|
||
ncgen -o $FATESPARAMFILE $FATESDIR/parameter_files/fates_params_default.cdl |
5 changes: 2 additions & 3 deletions
5
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
4 changes: 1 addition & 3 deletions
4
cime_config/testdefs/testmods_dirs/clm/FatesColdTwoStream/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,5 +1,3 @@ | ||
CASE=`./xmlquery CASE --value` | ||
SRCROOT=`./xmlquery SRCROOT --value` | ||
FATESDIR=$SRCROOT/src/fates | ||
FATESPARAMFILE=${SRCROOT}/src/fates/parameter_files/binaries/${CASE}-params.nc | ||
. "${SRCROOT}"/cime_config/testdefs/testmods_dirs/clm/_scripts/get_fates_shell_commands_vars.sh | ||
$FATESDIR/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_rad_model --val 2 --allpfts |
4 changes: 1 addition & 3 deletions
4
cime_config/testdefs/testmods_dirs/clm/FatesColdTwoStreamNoCompFixedBioGeo/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,5 +1,3 @@ | ||
CASE=`./xmlquery CASE --value` | ||
SRCROOT=`./xmlquery SRCROOT --value` | ||
FATESDIR=$SRCROOT/src/fates | ||
FATESPARAMFILE=${SRCROOT}/src/fates/parameter_files/binaries/${CASE}-params.nc | ||
. "${SRCROOT}"/cime_config/testdefs/testmods_dirs/clm/_scripts/get_fates_shell_commands_vars.sh | ||
$FATESDIR/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_rad_model --val 2 --allpfts |
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,2 @@ | ||
This directory contains scripts that can be called in | ||
shell_commands of multiple testmods. |
11 changes: 11 additions & 0 deletions
11
cime_config/testdefs/testmods_dirs/clm/_scripts/get_fates_shell_commands_vars.sh
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 @@ | ||
# This script should be called in shell_commands with | ||
# . "${SRCROOT}"/cime_config/testdefs/testmods_dirs/clm/_scripts/get_fates_shell_commands_vars.sh | ||
# where the leading period ensures it's run in the same shell. | ||
|
||
CASE=`./xmlquery CASE --value` | ||
FATESDIR="${SRCROOT}/src/fates" | ||
FATESPARAMDIR="${SRCROOT}/src/fates/parameter_files/binaries" | ||
mkdir -p "${FATESPARAMDIR}" | ||
FATESPARAMFILE="${FATESPARAMDIR}/${CASE}-params.nc" | ||
|
||
# No exit status because it should be called in the same shell. |
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