Skip to content

Commit

Permalink
undo the fix and reintroduce the incorrect logic. Fixing the bug open…
Browse files Browse the repository at this point in the history
…s another bug that needs evaluation on the purpose of the logic. A FIXME tag has been added
  • Loading branch information
aerorahul committed Dec 12, 2024
1 parent c37409d commit 5079448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/wave_grid_interp_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ source "${USHgfs}/preamble.sh"
export err=$?;err_chk

# Write interpolation file to main TEMP dir area if not there yet
if [ "${wht_OK}" = 'no' ]
if [ "wht_OK" = 'no' ] # FIXME: This is never going to evaluate to true, wht_OK is a string and needs to be ${wht_OK}. With ${wht_OK}, the next line is trying to copy into ${FIXgfs} space. This leads to a Permission denied error. The logic here needs to be evaluated and recoded. #TODO
then
cp -f ./WHTGRIDINT.bin ${DATA}/ww3_gint.WHTGRIDINT.bin.${grdID}
cp -f ./WHTGRIDINT.bin ${FIXgfs}/wave/ww3_gint.WHTGRIDINT.bin.${grdID}
Expand Down

0 comments on commit 5079448

Please sign in to comment.