Skip to content

Commit

Permalink
update WW3 IC error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA committed Jan 30, 2025
1 parent a06de0f commit a9d8f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,13 @@ WW3_postdet() {
${NCP} "${ww3_binary_restart_file}" "${DATA}/${ww3_restart_dest_file}" \
|| ( echo "FATAL ERROR: Unable to copy binary WW3 IC, ABORT!"; exit 1 )
else
if [[ "${RERUN}" == "YES" ]]; then
if [[ "${RERUN}" == "YES" ]] || [[ -f "${DATA}/ufs.cpld.cpl.r.nc" ]]; then
# In the case of a RERUN, the WW3 restart file is required
echo "FATAL ERROR: WW3 binary | netcdf restart file '${ww3_binary_restart_file}' | '${ww3_netcdf_restart_file}' not found for RERUN='${RERUN}', ABORT!"
# In the case of runtype=continue, if no wave restart when using PIO, the model will fail
echo "FATAL ERROR: WW3 binary | netcdf restart file '${ww3_binary_restart_file}' | '${ww3_netcdf_restart_file}' not found for RERUN='${RERUN}' or runtype=continue, ABORT!"
exit 1
else
echo "WARNING: WW3 binary | netcdf restart file '${ww3_binary_restart_file}' | '${ww3_netcdf_restart_file}' not found for warm_start='${warm_start}', will start from rest!"
export WW3_restart_from_binary=true
fi
fi

Expand Down

0 comments on commit a9d8f7e

Please sign in to comment.