Skip to content

Commit

Permalink
update fates hydro test module to change sapwood allometry mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
glemieux authored and rfiorella committed Jan 28, 2025
1 parent 5b3368c commit f7ce4c6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
#!/bin/bash
if [ `./xmlquery --value MACH` == bebop ]; then ./xmlchange --id LND_PIO_TYPENAME --val netcdf; fi
module load e4s
spack env activate gcc
spack load nco

SRCDIR=`./xmlquery SRCROOT --value`
CASEDIR=`./xmlquery CASEROOT --value`
FATESDIR=$SRCDIR/src/fates
FATESPARAMFILE=$CASEDIR/fates_params_hydrograsstempfix.nc

ncgen -o $FATESPARAMFILE $FATESDIR/parameter_files/fates_params_default.cdl

$FATESDIR/tools/modify_fates_paramfile.py --O --fin $FATESPARAMFILE --fout $FATESPARAMFILE --var fates_allom_smode --val 1 --allpfts

spack unload nco
module unload e4s
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ hist_nhtfrq = -24
hist_empty_htapes = .true.
use_fates_planthydro = .true.
fates_spitfire_mode = 1
fates_paramfile = '$CASEROOT/fates_params_hydrograsstempfix.nc'
hist_fincl1 = 'FATES_ERRH2O_SZPF', 'FATES_TRAN_SZPF',
'FATES_SAPFLOW_SZPF', 'FATES_ITERH1_SZPF','FATES_ABSROOT_H2O_SZPF',
'FATES_TRANSROOT_H2O_SZPF','FATES_STEM_H2O_SZPF','FATES_LEAF_H2O_SZPF',
Expand Down

0 comments on commit f7ce4c6

Please sign in to comment.