Skip to content

Commit

Permalink
Revert variables MODEL_INITIALIZATION, HSD_CASE to simple true or fal…
Browse files Browse the repository at this point in the history
…se strings
  • Loading branch information
Natalie Perlin authored and Natalie Perlin committed Nov 5, 2024
1 parent 5b7b93e commit 23df70f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions tests-dev/test_cases/exp_conf/2020_CAPE.IN
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ fi

echo "inputdir=$inputdir,NPX=$NPX,NESTED=$NESTED"

OPNREQ_TEST=${OPNREQ_TEST:-".false."}
V2_SFC_FILE=${V2_SFC_FILE:-".false."}
HSD_CASE=${HSD_CASE:-".false."}
OPNREQ_TEST=${OPNREQ_TEST:-false}
V2_SFC_FILE=${V2_SFC_FILE:-false}
HSD_CASE=${HSD_CASE:-false}
SUFFIX=${RT_SUFFIX}
if [ $WARM_START = .false. ]; then
mkdir INPUT RESTART
if [ "$NESTED" = .true. ]; then
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT_L127_nested/* ./INPUT/.
elif [ "$V2_SFC_FILE" = .true. ]; then
elif [ "$V2_SFC_FILE" = "true" ]; then
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT_L127_v2_sfc/* ./INPUT/.
elif [ "$HSD_CASE" = .true. ]; then
elif [ "$HSD_CASE" = "true" ]; then
cp -r @[HSD_INPUT_DATA]/${inputdir}/INPUT_L127_v2_sfc/* ./INPUT/.
else
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT_L127_gfsv17/* ./INPUT/.
Expand All @@ -47,7 +47,7 @@ else
cp ../${DEP_RUN}${SUFFIX}/${RFILE} .
fi

if [ $MODEL_INITIALIZATION = .false. ]; then
if [ $MODEL_INITIALIZATION = "false" ]; then
#read_inc and iau tests restart from fh=24
CURRDIR=`pwd`
FILEDIR=${CURRDIR}/../${DEP_RUN}${SUFFIX}/RESTART
Expand All @@ -58,7 +58,7 @@ else

if [[ ${IAU_OFFSET} != 0 ]] || [[ $READ_INCREMENT = .true. ]]; then

if [ $MODEL_INITIALIZATION = .false. ]; then
if [ $MODEL_INITIALIZATION = "false" ]; then
cp ${FILEDIR}/../INPUT/fv3_increment.nc INPUT/.
cp ${FILEDIR}/../INPUT/grid_spec.nc INPUT/.
cp ${FILEDIR}/../INPUT/*_grid.tile*.nc INPUT/.
Expand Down
14 changes: 7 additions & 7 deletions tests-dev/test_cases/exp_conf/baroclinic_wave.IN
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ elif [ $NPX = 769 ]; then
fi

echo "inputdir=$inputdir,NPX=$NPX,NESTED=$NESTED"
HSD_CASE=${HSD_CASE:-".false."}
if [ "$HSD_CASE" = .true. ]; then
HSD_CASE=${HSD_CASE:-false}
if [ "$HSD_CASE" = "true" ]; then
cp @[HSD_INPUT_DATA]/global_hyblev.l128.txt .
fi

OPNREQ_TEST=${OPNREQ_TEST:-".false."}
V2_SFC_FILE=${V2_SFC_FILE:-".false."}
OPNREQ_TEST=${OPNREQ_TEST:-false}
V2_SFC_FILE=${V2_SFC_FILE:-false}
SUFFIX=${RT_SUFFIX}
if [ $WARM_START = .false. ]; then
mkdir INPUT RESTART
if [ "$NESTED" = .true. ]; then
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT_L127_nested/* ./INPUT/.
elif [ "$V2_SFC_FILE" = .true. ]; then
elif [ "$V2_SFC_FILE" = "true" ]; then
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT_L127_v2_sfc/* ./INPUT/.
else
cp -r @[INPUTDATA_ROOT]/${inputdir}/INPUT_L127_gfsv17/* ./INPUT/.
Expand All @@ -48,7 +48,7 @@ else
cp ../${DEP_RUN}${SUFFIX}/${RFILE} .
fi

if [ $MODEL_INITIALIZATION = .false. ]; then
if [ $MODEL_INITIALIZATION = "false" ]; then
#read_inc and iau tests restart from fh=24
CURRDIR=`pwd`
FILEDIR=${CURRDIR}/../${DEP_RUN}${SUFFIX}/RESTART
Expand All @@ -59,7 +59,7 @@ else

if [[ ${IAU_OFFSET} != 0 ]] || [[ $READ_INCREMENT = .true. ]]; then

if [ $MODEL_INITIALIZATION = .false. ]; then
if [ $MODEL_INITIALIZATION = "false" ]; then
cp ${FILEDIR}/../INPUT/fv3_increment.nc INPUT/.
cp ${FILEDIR}/../INPUT/grid_spec.nc INPUT/.
cp ${FILEDIR}/../INPUT/*_grid.tile*.nc INPUT/.
Expand Down
2 changes: 1 addition & 1 deletion tests-dev/test_cases/tests/2020_CAPE
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ export FNMSKH_control="'global_slmask.t62.192.94.grb',"
export FV3_RUN=2020_CAPE.IN
export CCPP_SUITE='FV3_GFS_v16'
export INPUT_NML=control.nml.IN
export HSD_CASE=.true.
export HSD_CASE=true

2 changes: 1 addition & 1 deletion tests-dev/test_cases/tests/baroclinic_wave
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ export OUTPUT_FH='0 6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96 102 108 114 1
export FV3_RUN=baroclinic_wave.IN
export INPUT_NML=baroclinic_wave.nml.IN
export CCPP_SUITE='FV3_GFS_v17_p8_ugwpv1'
export HSD_CASE=.true.
export HSD_CASE=true
export WLCLK=90
2 changes: 1 addition & 1 deletion tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ export DOMAINS_STACK_SIZE=3000000

# Coldstart/warmstart
#rt script for ICs
export MODEL_INITIALIZATION=.false.
export MODEL_INITIALIZATION=false
#namelist variable
export WARM_START=.false.
export READ_INCREMENT=.false.
Expand Down

0 comments on commit 23df70f

Please sign in to comment.