Skip to content

Commit

Permalink
Change r_path to runcyc_path in ex-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin blake committed Dec 17, 2024
1 parent 86242c5 commit 7773232
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions scripts/exrrfs_forecast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ specified cycle.
#-----------------------------------------------------------------------
#
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then
r_path=${RUN}.${PDY}/${cyc}/${mem_num}
runcyc_path=${RUN}.${PDY}/${cyc}/${mem_num}
else
r_path=${RUN}.${PDY}/${cyc}
runcyc_path=${RUN}.${PDY}/${cyc}
fi

run_blending=${GESROOT}/${r_path}/run_blending
run_ensinit=${GESROOT}/${r_path}/run_ensinit
run_blending=${GESROOT}/${runcyc_path}/run_blending
run_ensinit=${GESROOT}/${runcyc_path}/run_ensinit
if [[ ${CYCLE_SUBTYPE} == "ensinit" && -e $run_blending && ! -e $run_ensinit ]]; then
echo "clean exit ensinit, blending used instead of ensinit."
exit 0
Expand Down
14 changes: 7 additions & 7 deletions scripts/exrrfs_prep_cyc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ YYJJJ2200000000=`date +"%y%j2200000000" -d "${START_DATE} 1 day ago"`
#

if [ "${DO_ENSEMBLE}" = "TRUE" ]; then
r_path=${RUN}.${PDY}/${cyc}/${mem_num}
runcyc_path=${RUN}.${PDY}/${cyc}/${mem_num}
else
r_path=${RUN}.${PDY}/${cyc}
runcyc_path=${RUN}.${PDY}/${cyc}
fi

#-----------------------------------------------------------------------
Expand All @@ -136,8 +136,8 @@ fi
#
#-----------------------------------------------------------------------
#
run_blending=${GESROOT}/${r_path}/run_blending
run_ensinit=${GESROOT}/${r_path}/run_ensinit
run_blending=${GESROOT}/${runcyc_path}/run_blending
run_ensinit=${GESROOT}/${runcyc_path}/run_ensinit
if [[ $CYCLE_SUBTYPE == "ensinit" && -e $run_blending && ! -e $run_ensinit ]]; then
echo "clean exit ensinit, blending used instead of ensinit."
exit 0
Expand Down Expand Up @@ -350,8 +350,8 @@ else
if [ "${CYCLE_SUBTYPE}" = "spinup" ] ; then
# point to the 0-h cycle for the warm start from the 1 timestep restart files
fg_restart_dirname=forecast_ensinit
bkpath=${FG_ROOT}/${r_path}/${fg_restart_dirname}/RESTART # cycling, use background from RESTART
ctrl_bkpath=${FG_ROOT}/${r_path}/forecast_spinup/INPUT
bkpath=${FG_ROOT}/${runcyc_path}/${fg_restart_dirname}/RESTART # cycling, use background from RESTART
ctrl_bkpath=${FG_ROOT}/${runcyc_path}/forecast_spinup/INPUT
else
YYYYMMDDHHmInterv=$( date +%Y%m%d%H -d "${START_DATE} ${DA_CYCLE_INTERV} hours ago" )
YYYYMMDDInterv=`echo ${YYYYMMDDHHmInterv} | cut -c1-8`
Expand Down Expand Up @@ -452,7 +452,7 @@ else
done
fi
if [ "${CYCLE_SUBTYPE}" = "spinup" ] ; then
cpreq -p ${FG_ROOT}/${r_path}/${fg_restart_dirname}/INPUT/gfs_ctrl.nc gfs_ctrl.nc
cpreq -p ${FG_ROOT}/${runcyc_path}/${fg_restart_dirname}/INPUT/gfs_ctrl.nc gfs_ctrl.nc
else
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then
cpreq -p ${FG_ROOT}/${RUN}.${YYYYMMDDInterv}/${HHInterv}/${mem_num}/${fg_restart_dirname}/INPUT/gfs_ctrl.nc gfs_ctrl.nc
Expand Down
8 changes: 4 additions & 4 deletions scripts/exrrfs_save_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ save_hh=${save_time:8:2}
#

if [ "${DO_ENSEMBLE}" = "TRUE" ]; then
r_path=${RUN}.${PDY}/${cyc}/${mem_num}
runcyc_path=${RUN}.${PDY}/${cyc}/${mem_num}
else
r_path=${RUN}.${PDY}/${cyc}
runcyc_path=${RUN}.${PDY}/${cyc}
fi

run_blending=${GESROOT}/${r_path}/run_blending
run_ensinit=${GESROOT}/${r_path}/run_ensinit
run_blending=${GESROOT}/${runcyc_path}/run_blending
run_ensinit=${GESROOT}/${runcyc_path}/run_ensinit
if [[ ${CYCLE_SUBTYPE} == "ensinit" && -e $run_blending ]]; then
echo "clean exit ensinit, blending used instead of ensinit."
exit 0
Expand Down

0 comments on commit 7773232

Please sign in to comment.