Skip to content
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SRCDIR=`./xmlquery SRCROOT --value`
SRCDIR=`./xmlquery COMP_ROOT_DIR_LND --value`
CASEDIR=`./xmlquery CASEROOT --value`
FATESDIR=$SRCDIR/src/fates/
FATESPARAMFILE=$CASEDIR/fates_params_init_dbh.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
../Fates
../FatesCold
../FatesSetupParamBuild/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SRCDIR=`./xmlquery SRCROOT --value`
SRCDIR=`./xmlquery COMP_ROOT_DIR_LND --value`
CASEDIR=`./xmlquery CASEROOT --value`
FATESDIR=$SRCDIR/src/fates/
FATESPARAMFILE=$CASEDIR/fates_params_prt2_prescribed_p.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
../Fates
../FatesCold
../FatesSetupParamBuild/
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
SRCDIR=`./xmlquery SRCROOT --value`
SRCDIR=`./xmlquery COMP_ROOT_DIR_LND --value`
CASEDIR=`./xmlquery CASEROOT --value`
FATESDIR=$SRCDIR/src/fates/
FATESPARAMFILE=$CASEDIR/fates_params_prt2_prescribed_np.json

cp $FATESDIR/parameter_files/fates_params_default.json $FATESPARAMFILE

$FATESDIR/tools/modify_fates_paramfile.py --overwrite --fin $FATESPARAMFILE --param fates_cnp_prescribed_puptake --values 10.0 --indices all
$FATESDIR/tools/modify_fates_paramfile.py --overwrite --fin $FATESPARAMFILE --param fates_cnp_prescribed_nuptake --values 10.0 --indices all

echo "fates_paramfile = '$FATESPARAMFILE'" >> $CASEDIR/user_nl_clm
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ 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.
file generated on the fly is placed in the $COMP_ROOT_DIR_LND/src/fates/parameter_files
directory. This may still run into problems is the $COMP_ROOT_DIR_LND 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
../Fates
../FatesCold
../FatesSetupParamBuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SRCDIR=`./xmlquery SRCROOT --value`
SRCDIR=`./xmlquery COMP_ROOT_DIR_LND --value`
CASEDIR=`./xmlquery CASEROOT --value`
FATESDIR=$SRCDIR/src/fates/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ parameter from 1 to 2. This is all that is needed, both radiation schemes
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.
file generated on the fly is placed in the $COMP_ROOT_DIR_LND/src/fates/parameter_files
directory. This may still run into problems is the $COMP_ROOT_DIR_LND 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ check_if_runable () {
main() {
# If under a casedirectory get a few variables for later use
if [ -f xmlquery ]; then
SRCDIR=$(./xmlquery SRCROOT --value || echo "null")
check_error $? "Trouble getting SRCROOT from case"
SRCDIR=$(./xmlquery COMP_ROOT_DIR_LND --value || echo "null")
check_error $? "Trouble getting COMP_ROOT_DIR_LND from case"
DEBUG=0
# otherwise if this is being run in the testmod directory for debugging
else
Expand Down
Loading