From 872e760febc46512297ab7df1cdf9899845271dd Mon Sep 17 00:00:00 2001 From: "Walter.Kolczynski" Date: Fri, 25 Oct 2024 00:32:08 -0500 Subject: [PATCH] Fix logic error in copying wave restart file --- ush/forecast_postdet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index 8ab3352b5a..288b251aa8 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -339,7 +339,7 @@ WW3_postdet() { fi echo "Copying WW3 restarts for 'RUN=${RUN}' at '${restart_date}' from '${restart_dir}'" ww3_restart_file="${restart_dir}/${restart_date:0:8}.${restart_date:8:2}0000.restart.ww3" - if [[ ! -f "${ww3_restart_file}" ]]; then + if [[ -f "${ww3_restart_file}" ]]; then ${NCP} "${ww3_restart_file}" "${DATA}/restart.ww3" \ || ( echo "FATAL ERROR: Unable to copy WW3 IC, ABORT!"; exit 1 ) else