Skip to content

Commit

Permalink
modified jobs\JGLOBAL_ARCHIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonMFernando-NOAA committed Jan 13, 2025
1 parent fa45535 commit 3078a4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs/JGLOBAL_ARCHIVE
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,21 @@ done

###############################################################
# Create an array of output wave grids to process
export OUT_GRIDS=""
if [[ "${DO_WAVE}" == "YES" ]]; then
# Create a variable for output wave grids to process
if [[ -n "${wavepostGRD}" || -n "${waveinterpGRD}" ]]; then
WAVE_OUT_GRIDS=""
for grdID in ${wavepostGRD} ${waveinterpGRD}; do
source "${USHgfs}/wave_domain_grid.sh"
process_grdID "${grdID}"
YMD=${PDY} HH=${cyc} GRDRESNAME=${grdNAME} declare_from_tmpl -rx \
"COMIN_WAVE_GRID_${GRDNAME}_${GRDRES}:COM_WAVE_GRID_RES_TMPL"
grids_arr+=("${GRDNAME}.${GRDRES}")
done
export WAVE_OUT_GRIDS="${grids_arr[*]}"
export OUT_GRIDS="${grids_arr[*]}"
else
echo "Both wavepostGRD and waveinterpGRD are empty. No grids to process."
export WAVE_OUT_GRIDS=""
export OUT_GRIDS=""
fi
fi
###############################################################
Expand Down

0 comments on commit 3078a4e

Please sign in to comment.