Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ac7fcd6
bring env/ changes from feature/rename_wave
aerorahul Mar 18, 2025
f609f7b
bring changes from feature/rename_wave relevant to wave_init and fore…
aerorahul Mar 18, 2025
f862487
bring changes from workflow/ of branch feature/rename_wave relevant t…
aerorahul Mar 18, 2025
2e19ccc
wip for sbs job
aerorahul Mar 18, 2025
f45c723
got post sbs job to run successfully w/ MPMD
aerorahul Mar 21, 2025
e01f017
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 21, 2025
ff0a9e6
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 21, 2025
ea20c39
bring from WKs branch
aerorahul Mar 21, 2025
6a9faf5
update wavepostpnt job for renamed wave files in COM
aerorahul Mar 24, 2025
42d83e2
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 24, 2025
96783ac
update wave gempak ex script
aerorahul Mar 25, 2025
b336c23
loop over forecast hours for wave gempak jobs
aerorahul Mar 25, 2025
d165e1b
take more changes from Walters gfs_tasks.py
aerorahul Mar 25, 2025
b762ad2
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 25, 2025
7c4038d
fix mpmd call in wave init
aerorahul Mar 25, 2025
d7d1536
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 26, 2025
3d72d1e
fix issues in the wave gempak scripts that came up during testing
aerorahul Mar 27, 2025
c19023a
wavepostpnt and wavepostbndpnt do not work w/ CFP on wcoss. disable …
aerorahul Mar 27, 2025
06e027f
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 27, 2025
4b21b70
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 31, 2025
892a9d2
if-else on seperate lines
aerorahul Mar 31, 2025
fa35a5b
disable USE_CFP on other platforms for wavepostpnt and wavebndpnt jobs
aerorahul Mar 31, 2025
f3ad91c
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Mar 31, 2025
e639a24
USE_CFP should not be turned off for wavepostpnt and wavecndpnt jobs
aerorahul Apr 1, 2025
861dead
on WCOSS2, CFP_MP was not defined, so USE_CFP must be NO for wavepost…
aerorahul Apr 1, 2025
235297d
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Apr 1, 2025
23c21d8
update gdas|gfs wave.yaml.j2 to get correct filenames
aerorahul Apr 1, 2025
e0d702c
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Apr 1, 2025
3c35bed
Merge remote-tracking branch 'refs/remotes/origin/feature/rename_wave…
aerorahul Apr 1, 2025
d6cdd0d
fix arch_tars errors
aerorahul Apr 2, 2025
e89d5d9
add wavepostbndpntbll to the USE_CFP=NO list on WCOSS
aerorahul Apr 2, 2025
8d71447
apply reviewer comment
aerorahul Apr 2, 2025
ba5adf7
disable C96C48_ufs_hybatmDA test on GaeaC6. this test does not run s…
aerorahul Apr 3, 2025
00dd5a2
Merge branch 'develop' into feature/rename_wave_rm
aerorahul Apr 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/cases/pr/C96C48_ufs_hybatmDA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ arguments:

skip_ci_on_hosts:
- gaeac5
- gaeac6
- orion
- hercules
- awsepicglobalworkflow
9 changes: 1 addition & 8 deletions env/AWSPW.env
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ elif [[ "${step}" = "prep_emissions" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
Comment thread
KateFriedman-NOAA marked this conversation as resolved.
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand All @@ -69,13 +69,6 @@ elif [[ "${step}" = "fcst" ]] || [[ "${step}" = "efcs" ]]; then
export APRUN_UFS="${launcher} -n ${ufs_ntasks}"
unset nnodes ufs_ntasks

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}

elif [[ "${step}" = "post" ]]; then

export NTHREADS_UPP=${NTHREADS1}
Expand Down
2 changes: 1 addition & 1 deletion env/AZUREPW.env
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if [[ "${step}" = "fcst" ]] || [[ "${step}" = "efcs" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand Down
5 changes: 2 additions & 3 deletions env/GAEAC5.env
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ case ${step} in
;;
"waveinit" | "waveprep" | "wavepostsbs" | "wavepostbndpnt" | "wavepostpnt" | "wavepostbndpntbll")

export CFP_MP="YES"
if [[ "${step}" = "waveprep" ]]; then
export USE_CFP="YES"
if [[ "${step}" == "waveprep" ]]; then
export MP_PULSE=0
fi
export wavempexec=${launcher}
Expand Down Expand Up @@ -330,4 +330,3 @@ case ${step} in
echo "WARNING: The job step ${step} does not specify GAEAC5-specific resources"
;;
esac

2 changes: 1 addition & 1 deletion env/GAEAC6.env
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case ${step} in
;;
"waveinit" | "waveprep" | "wavepostsbs" | "wavepostbndpnt" | "wavepostpnt" | "wavepostbndpntbll")

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" == "waveprep" ]]; then
export MP_PULSE=0
fi
Expand Down
2 changes: 1 addition & 1 deletion env/GOOGLEPW.env
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ elif [[ "${step}" = "prep_emissions" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand Down
10 changes: 5 additions & 5 deletions env/HERA.env
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ elif [[ "${step}" = "prep_emissions" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand Down Expand Up @@ -205,8 +205,8 @@ elif [[ "${step}" = "sfcanl" ]]; then
# REGRID requires multiple of 6 tasks
ntdiv6=$((ntasks/6))
ntasks_regrid=$((ntdiv6*6))
if [[ ${ntasks_regrid} -gt 36 ]]; then
ntasks_regrid=36
if [[ ${ntasks_regrid} -gt 36 ]]; then
ntasks_regrid=36
fi
export APRUN_REGRID="${launcher} -n ${ntasks_regrid} "

Expand Down Expand Up @@ -283,8 +283,8 @@ elif [[ "${step}" = "esfc" ]]; then

ntdiv6=$((ntasks/6))
ntasks_regrid=$((ntdiv6*6))
if [[ ${ntasks_regrid} -gt 36 ]]; then
ntasks_regrid=36
if [[ ${ntasks_regrid} -gt 36 ]]; then
ntasks_regrid=36
fi
export APRUN_REGRID="${launcher} -n ${ntasks_regrid} "

Expand Down
6 changes: 2 additions & 4 deletions env/HERCULES.env
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ case ${step} in
;;
"waveinit" | "waveprep" | "wavepostsbs" | "wavepostbndpnt" | "wavepostpnt" | "wavepostbndpntbll")

export CFP_MP="YES"
if [[ "${step}" == "waveprep" ]]; then
export MP_PULSE=0
fi
export USE_CFP="YES"
if [[ "${step}" == "waveprep" ]]; then export MP_PULSE=0; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}

Expand Down
2 changes: 1 addition & 1 deletion env/JET.env
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ elif [[ "${step}" = "prep_emissions" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand Down
2 changes: 1 addition & 1 deletion env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ elif [[ "${step}" = "prep_emissions" ]]; then
elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || \
[[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostpnt" ]] || [[ "${step}" == "wavepostbndpntbll" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand Down
2 changes: 1 addition & 1 deletion env/S4.env
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ elif [[ "${step}" = "prep_emissions" ]]; then

elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export CFP_MP="YES"
export USE_CFP="YES"
if [[ "${step}" = "waveprep" ]]; then export MP_PULSE=0 ; fi
export wavempexec=${launcher}
export wave_mpmd=${mpmd_opt}
Expand Down
4 changes: 4 additions & 0 deletions env/WCOSS2.env
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ elif [[ "${step}" = "prep_emissions" ]]; then
elif [[ "${step}" = "waveinit" ]] || [[ "${step}" = "waveprep" ]] || [[ "${step}" = "wavepostsbs" ]] || [[ "${step}" = "wavepostbndpnt" ]] || [[ "${step}" = "wavepostbndpntbll" ]] || [[ "${step}" = "wavepostpnt" ]]; then

export USE_CFP="YES"
if [[ "${step}" = "wavepostpnt" ]] || [[ "${step}" = "wavepostbndpnt" ]] || \
[[ "${step}" = "wavepostbndpntbll" ]]; then
export USE_CFP="NO"
fi
export wavempexec="${launcher} -np"
export wave_mpmd=${mpmd_opt}

Expand Down
20 changes: 10 additions & 10 deletions jobs/JGLOBAL_WAVE_GEMPAK
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "wavegempak" -c "base wave wavegempak"
source "${USHgfs}/wave_domain_grid.sh"

# Add default errchk = err_chk
export errchk=${errchk:-err_chk}
Expand All @@ -14,24 +15,23 @@ export SENDDBN=${SENDDBN:-YES}
export DBNROOT=${DBNROOT:-${UTILROOT}/fakedbn}

YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_GRID:COM_WAVE_GRID_TMPL \
COMOUT_WAVE_GEMPAK:COM_WAVE_GEMPAK_TMPL
COMOUT_WAVE_GEMPAK:COM_WAVE_GEMPAK_TMPL

if [[ -n "${GEMPAK_GRIDS}" ]]; then
for grdID in ${GEMPAK_GRIDS}; do
process_grdID "${grdID}"
YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${GRDREGION}_${GRDRES}:COM_WAVE_GRID_RES_TMPL"
done
for grdID in ${GEMPAK_GRIDS}; do
process_grdID "${grdID}"
YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${GRDREGION}_${GRDRES}:COM_WAVE_GRID_RES_TMPL"
done
else
echo "waveinterpGRD is empty. No grids to process."
echo "'GEMPAK_GRIDS' is empty. No grids to process."
fi

if [[ ! -d ${COMOUT_WAVE_GEMPAK} ]]; then mkdir -p "${COMOUT_WAVE_GEMPAK}"; fi

########################################################
# Execute the script.
${SCRgfs}/exgfs_wave_nawips.sh
"${SCRgfs}/exgfs_wave_nawips.sh"
err=$?
if [[ ${err} -ne 0 ]]; then
exit "${err}"
Expand All @@ -40,7 +40,7 @@ fi

# Remove temp directories
cd "${DATAROOT}" || true
if [ "${KEEPDATA}" != "YES" ]; then
if [[ "${KEEPDATA}" != "YES" ]]; then
rm -rf "${DATA}"
fi

Expand Down
12 changes: 6 additions & 6 deletions jobs/JGLOBAL_WAVE_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "waveinit" -c "base wave waveinit"


# Add default errchk = err_chk
export errchk=${errchk:-err_chk}

export MP_PULSE=0

# Set COM Paths
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMOUT_WAVE_PREP:COM_WAVE_PREP_TMPL
COMOUT_WAVE_PREP:COM_WAVE_PREP_TMPL

if [[ ! -d "${COMOUT_WAVE_PREP}" ]]; then mkdir -p "${COMOUT_WAVE_PREP}"; fi

Expand All @@ -20,15 +19,16 @@ export wavempexec=${wavempexec:-"mpirun -n"}
export wave_mpmd=${wave_mpmd:-"cfp"}

# Execute the Script
${SCRgfs}/exgfs_wave_init.sh
"${SCRgfs}/exgfs_wave_init.sh"
err=$?
if [[ "${err}" -ne 0 ]]; then exit "${err}"; fi

##########################################
# Remove the Temporary working directory
##########################################
cd "${DATAROOT}" || true
if [[ "${KEEPDATA}" == "NO" ]]; then
rm -rf "${DATA}"
if [[ "${KEEPDATA}" != "YES" ]]; then
Comment thread
DavidHuber-NOAA marked this conversation as resolved.
rm -rf "${DATA}"
fi


exit 0
19 changes: 6 additions & 13 deletions jobs/JGLOBAL_WAVE_POST_BNDPNT
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,18 @@ export MP_PULSE=0

# Set COM Paths
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL

if [[ ! -d "${COMOUT_WAVE_STATION}" ]]; then mkdir -p "${COMOUT_WAVE_STATION}"; fi

# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
membTAG='p'
if [ "${waveMEMB}" == "00" ]; then membTAG='c'; fi
export membTAG
export WAV_MOD_TAG=${RUN}wave${waveMEMB}

export CFP_VERBOSE=1

export FHMAX_WAV_PNT=${FHMAX_WAV_IBP}
export DOSPC_WAV='YES' # Spectral post
export DOBLL_WAV='NO' # Bulletin post
export DOBNDPNT_WAV='YES' # Do boundary points
export DOSPC_WAV='YES' # Spectral post
export DOBLL_WAV='NO' # Bulletin post
export DOBNDPNT_WAV='YES' # Boundary points

# Execute the Script
${SCRgfs}/exgfs_wave_post_pnt.sh
Expand Down
19 changes: 6 additions & 13 deletions jobs/JGLOBAL_WAVE_POST_BNDPNTBLL
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,18 @@ export MP_PULSE=0

# Set COM Paths
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL
COMIN_WAVE_PREP:COM_WAVE_PREP_TMPL \
COMIN_WAVE_HISTORY:COM_WAVE_HISTORY_TMPL \
COMOUT_WAVE_STATION:COM_WAVE_STATION_TMPL

if [[ ! -d "${COMOUT_WAVE_STATION}" ]]; then mkdir -p "${COMOUT_WAVE_STATION}"; fi

# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
membTAG='p'
if [ "${waveMEMB}" == "00" ]; then membTAG='c'; fi
export membTAG
export WAV_MOD_TAG=${RUN}wave${waveMEMB}

export CFP_VERBOSE=1

export FHMAX_WAV_PNT=${FHMAX_WAV_IBP}
export DOSPC_WAV='NO' # Spectral post
export DOBLL_WAV='YES' # Bulletin post
export DOBNDPNT_WAV='YES' #boundary points
export DOSPC_WAV='NO' # Spectral post
export DOBLL_WAV='YES' # Bulletin post
export DOBNDPNT_WAV='YES' # Boundary points

# Execute the Script
${SCRgfs}/exgfs_wave_post_pnt.sh
Expand Down
7 changes: 0 additions & 7 deletions jobs/JGLOBAL_WAVE_POST_PNT
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \

if [[ ! -d "${COMOUT_WAVE_STATION}" ]]; then mkdir -p "${COMOUT_WAVE_STATION}"; fi

# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
membTAG='p'
if [ "${waveMEMB}" == "00" ]; then membTAG='c'; fi
export membTAG
export WAV_MOD_TAG=${RUN}wave${waveMEMB}

export CFP_VERBOSE=1

export FHMAX_WAV_PNT=$(( FHMAX_WAV - OFFSET_START_HOUR ))
Expand Down
46 changes: 15 additions & 31 deletions jobs/JGLOBAL_WAVE_POST_SBS
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@

source "${HOMEgfs}/ush/preamble.sh"
source "${HOMEgfs}/ush/jjob_header.sh" -e "wavepostsbs" -c "base wave wavepostsbs"
source "${USHgfs}/wave_domain_grid.sh"

# Add default errchk = err_chk
export errchk=${errchk:-err_chk}

export MP_PULSE=0
source "${USHgfs}/wave_domain_grid.sh"

# Set COM Paths
YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
Expand All @@ -18,43 +13,32 @@ YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \
if [[ ! -d "${COMOUT_WAVE_GRID}" ]]; then mkdir -p "${COMOUT_WAVE_GRID}"; fi

if [[ -n "${wavepostGRD}" || -n "${waveinterpGRD}" ]]; then
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
process_grdID "${grdID}"
YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \
"COMOUT_WAVE_GRID_${GRDREGION}_${GRDRES}:COM_WAVE_GRID_RES_TMPL"
out_dir_varname="COMOUT_WAVE_GRID_${GRDREGION}_${GRDRES}"
out_dir=${!out_dir_varname}
if [[ ! -d "${out_dir}" ]]; then mkdir -p "${out_dir}"; fi
done
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
process_grdID "${grdID}"
YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \
"COMOUT_WAVE_GRID_${GRDREGION}_${GRDRES}:COM_WAVE_GRID_RES_TMPL"
out_dir_varname="COMOUT_WAVE_GRID_${GRDREGION}_${GRDRES}"
out_dir=${!out_dir_varname}
if [[ ! -d "${out_dir}" ]]; then mkdir -p "${out_dir}"; fi
done
else
echo "Both wavepostGRD and waveinterpGRD are empty. No grids to process."
echo "Both wavepostGRD and waveinterpGRD are empty. No grids to process."
fi
# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
# Set wave model ID tag to include member number
# if ensemble; waveMEMB var empty in deterministic
membTAG='p'
if [ "${waveMEMB}" == "00" ]; then membTAG='c'; fi
export membTAG
export WAV_MOD_TAG=${RUN}wave${waveMEMB}

export CFP_VERBOSE=1

# Execute the Script
${SCRgfs}/exgfs_wave_post_gridded_sbs.sh
"${SCRgfs}/exgfs_wave_post_gridded_sbs.sh"
err=$?
if [ ${err} -ne 0 ]; then
echo "FATAL ERROR: ex-script of GWES_POST failed!"
if [[ "${err}" -ne 0 ]]; then
echo "FATAL ERROR: ex-script of gridded wave post failed!"
exit "${err}"
fi

##########################################
# Remove the Temporary working directory
##########################################
cd "${DATAROOT}" || true
if [[ "${KEEPDATA}" == "NO" ]]; then
rm -rf "${DATA}"
if [[ "${KEEPDATA}" != "YES" ]]; then
rm -rf "${DATA}"
fi


exit 0
Loading