Skip to content

Commit

Permalink
Code Updates for New Wave Fix Files (#1605)
Browse files Browse the repository at this point in the history
Updates the code to point to correct fix files with name changes.

Fixes #1493
  • Loading branch information
JessicaMeixner-NOAA authored May 15, 2023
1 parent 255d99b commit c005fbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions ush/wave_grid_interp_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,25 +112,25 @@ source "$HOMEgfs/ush/preamble.sh"
# Check if there is an interpolation weights file available

wht_OK='no'
if [ ! -f ${DATA}/WHTGRIDINT.bin.${grdID} ]; then
if [ -f $FIXwave/WHTGRIDINT.bin.${grdID} ]
if [ ! -f ${DATA}/ww3_gint.WHTGRIDINT.bin.${grdID} ]; then
if [ -f $FIXwave/ww3_gint.WHTGRIDINT.bin.${grdID} ]
then
set +x
echo ' '
echo " Copying $FIXwave/WHTGRIDINT.bin.${grdID} "
echo " Copying $FIXwave/ww3_gint.WHTGRIDINT.bin.${grdID} "
set_trace
cp $FIXwave/WHTGRIDINT.bin.${grdID} ${DATA}
cp $FIXwave/ww3_gint.WHTGRIDINT.bin.${grdID} ${DATA}
wht_OK='yes'
else
set +x
echo ' '
echo " Not found: $FIXwave/WHTGRIDINT.bin.${grdID} "
echo " Not found: $FIXwave/ww3_gint.WHTGRIDINT.bin.${grdID} "
fi
fi
# Check and link weights file
if [ -f ${DATA}/WHTGRIDINT.bin.${grdID} ]
if [ -f ${DATA}/ww3_gint.WHTGRIDINT.bin.${grdID} ]
then
ln -s ${DATA}/WHTGRIDINT.bin.${grdID} ./WHTGRIDINT.bin
ln -s ${DATA}/ww3_gint.WHTGRIDINT.bin.${grdID} ./WHTGRIDINT.bin
fi

# 1.b Run interpolation code
Expand All @@ -147,8 +147,8 @@ source "$HOMEgfs/ush/preamble.sh"
# Write interpolation file to main TEMP dir area if not there yet
if [ "wht_OK" = 'no' ]
then
cp -f ./WHTGRIDINT.bin ${DATA}/WHTGRIDINT.bin.${grdID}
cp -f ./WHTGRIDINT.bin ${FIXwave}/WHTGRIDINT.bin.${grdID}
cp -f ./WHTGRIDINT.bin ${DATA}/ww3_gint.WHTGRIDINT.bin.${grdID}
cp -f ./WHTGRIDINT.bin ${FIXwave}/ww3_gint.WHTGRIDINT.bin.${grdID}
fi


Expand Down
2 changes: 1 addition & 1 deletion versions/fix.ver
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export reg2grb2_ver=20220805
export sfc_climo_ver=20220805
export ugwd_ver=20220805
export verif_ver=20220805
export wave_ver=20220805
export wave_ver=20230426

0 comments on commit c005fbc

Please sign in to comment.