Skip to content

Commit ed346d4

Browse files
committed
update fates hydro test module to change sapwood allometry mode
This update calls the fates parameter modification tooling to set the grass allometry smode to 1, which is the default for all other fates PFTs. This is a temporary workaround for NGEET/fates#1254.
1 parent 39ca745 commit ed346d4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
#!/bin/bash
22
if [ `./xmlquery --value MACH` == bebop ]; then ./xmlchange --id LND_PIO_TYPENAME --val netcdf; fi
3+
module load e4s
4+
spack env activate gcc
5+
spack load nco
6+
7+
SRCDIR=`./xmlquery SRCROOT --value`
8+
CASEDIR=`./xmlquery CASEROOT --value`
9+
FATESDIR=$SRCDIR/src/fates
10+
FATESPARAMFILE=$CASEDIR/fates_params_hydrograsstempfix.nc
11+
12+
ncgen -o $FATESPARAMFILE $FATESDIR/parameter_files/fates_params_default.cdl
13+
14+
$FATESDIR/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_allom_smode --val 1 --allpfts
15+
16+
spack unload nco
17+
module unload e4s

components/elm/cime_config/testdefs/testmods_dirs/elm/fateshydro/user_nl_elm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ hist_nhtfrq = -24
55
hist_empty_htapes = .true.
66
use_fates_planthydro = .true.
77
fates_spitfire_mode = 1
8+
fates_paramfile = '$CASEROOT/fates_params_hydrograsstempfix.nc'
89
hist_fincl1 = 'FATES_ERRH2O_SZPF', 'FATES_TRAN_SZPF',
910
'FATES_SAPFLOW_SZPF', 'FATES_ITERH1_SZPF','FATES_ABSROOT_H2O_SZPF',
1011
'FATES_TRANSROOT_H2O_SZPF','FATES_STEM_H2O_SZPF','FATES_LEAF_H2O_SZPF',

0 commit comments

Comments
 (0)