From 5ea6eeb435cf4e007254b06447412f27d70a2a98 Mon Sep 17 00:00:00 2001 From: "Xianwu.Xue" Date: Mon, 20 Feb 2023 16:24:54 -0500 Subject: [PATCH] Improve prdgen job to avoid missing log file error On branch feature/gefs_v13_atmos_prep modified: ush/gefs_prdgen_driver.sh Refs: #95 --- ush/gefs_prdgen_driver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/gefs_prdgen_driver.sh b/ush/gefs_prdgen_driver.sh index 1beb52abf..265f87fb1 100755 --- a/ush/gefs_prdgen_driver.sh +++ b/ush/gefs_prdgen_driver.sh @@ -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