Skip to content

Commit

Permalink
Check that FHMAX_GFS is greater than FHMAX_HF_GFS
Browse files Browse the repository at this point in the history
An error check has been added to make sure FHMAX_GFS is greater than FHMAX_HF_GFS. A fatal error will occur if this check fails.
  • Loading branch information
EricSinsky-NOAA committed Jul 9, 2024
1 parent ef7799b commit 2f89276
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/exglobal_extractvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export varlist_ice_netcdf=${varlist_ice_netcdf:-"${PARMgfs}/product/gefs_ice_sho
export varlist_ocn_grib2=${varlist_ocn_grib2:-"${PARMgfs}/product/gefs_ocn_shortparmlist_grib2.parm"} #Parameter table for wave variables
export varlist_ice_grib2=${varlist_ice_grib2:-"${PARMgfs}/product/gefs_ice_shortparmlist_grib2.parm"} #Parameter table for wave variables

#Check to make sure FHMAX_HF_GFS is less than FHMAX_GFS
if [[ "${FHMAX_GFS}" -lt "${FHMAX_HF_GFS}" ]];then
echo "FATAL ERROR: FHMAX_GFS (${FHMAX_GFS}) is less than FHMAX_HF_GFS (${FHMAX_HF_GFS}). FHMAX_GFS must be greater than FHMAX_HF_GFS."
export err=1; err_chk
fi

#Extract variables for atmosphere
if [[ "${DO_ATM}" == "YES" ]];then
if [[ ! -d "${DATA}/mem${ENSMEM}_atmos" ]]; then
Expand Down

0 comments on commit 2f89276

Please sign in to comment.