Skip to content

Commit

Permalink
Make RERUN receive value from out of the script
Browse files Browse the repository at this point in the history
This is mostly for GEFS forecast_d16_35 job

 On branch feature/gefs_v13_822_add_atm_fcst
	modified:   ush/forecast_det.sh

Refs: NOAA-EMC#822
  • Loading branch information
XianwuXue-NOAA committed Jan 11, 2023
1 parent dd70d8d commit fd325ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/forecast_det.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ FV3_GFS_det(){

#-------------------------------------------------------
# determine if restart IC exists to continue from a previous forecast
RERUN="NO"
RERUN=${RERUN:-"NO"}
filecount=$(find "${RSTDIR_ATM:-/dev/null}" -type f | wc -l)
if [[ ( ${CDUMP} = "gfs" || ( ${RUN} = "gefs" && ${CDATE_RST} = "" )) && ${rst_invt1} -gt 0 && ${FHMAX} -gt ${rst_invt1} && ${filecount} -gt 10 ]]; then
reverse=$(echo "${restart_interval[@]} " | tac -s ' ')
Expand Down

0 comments on commit fd325ac

Please sign in to comment.