Skip to content

Commit

Permalink
Improve prdgen job to avoid missing log file error
Browse files Browse the repository at this point in the history
 On branch feature/gefs_v13_atmos_prep
	modified:   ush/gefs_prdgen_driver.sh

Refs: NOAA-EMC#95
  • Loading branch information
XianwuXue-NOAA committed Feb 20, 2023
1 parent 95d9878 commit 5ea6eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/gefs_prdgen_driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ for hour in $hours; do
else # [[ $RUNMEM = "gegfs" ]]
# Check if control file has been created, to make sure file is complete before using
testfhr=-1
if [[ -f ${mafile} ]]; then
if [[ -f ${mafile} ]] && [[ -f ${mcfile} ]]; then
if [[ ! -f ${mifile} ]]; then
${GRB2INDEX} "${mafile}" "${mifile}"
fi
Expand Down

0 comments on commit 5ea6eeb

Please sign in to comment.