-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update fates seed dispersal test mod
This update implments a shell script to call ncgen and the fates modify parameter file tooling to generate and update the default fates parameters on the fly with values appropriate for seed dispersal mode.
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
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=$CASEDIR/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 |
2 changes: 1 addition & 1 deletion
2
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
fates_paramfile = '/glade/p/cesm/cseg/inputdata/lnd/clm2/paramdata/fates_params_api.25.5.0_12pft_5x5_amazon_seeddispersal_c230925.nc' | ||
fates_paramfile = '$CASEROOT/fates_params_seeddisp_4x5.nc' | ||
fates_seeddisp_cadence = 1 | ||
hist_fincl1 = 'FATES_SEEDS_IN_GRIDCELL_PF', 'FATES_SEEDS_OUT_GRIDCELL_PF' |