Skip to content

Commit

Permalink
auto-resubmit on atmosphere/input.nml error payu-org/payu#274
Browse files Browse the repository at this point in the history
  • Loading branch information
aekiss committed Jun 18, 2020
1 parent 79493a9 commit e0f5705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ MAX_RESUBMISSIONS=2
date >> ${logfile}

# Define errors from which a resubmit is appropriate
declare -a errors=(
declare -a errors=(
"Segmentation fault: address not mapped to object"
"Transport retry count exceeded"
"atmosphere/input.nml"
)

resub=false
Expand Down Expand Up @@ -48,10 +49,9 @@ then
${PAYU_PATH}/payu sweep >> ${logfile}
${PAYU_PATH}/payu run -n ${PAYU_N_RUNS} >> ${logfile}
# Decrement resub counter and save to counter file
((PAYU_N_RESUB=PAYU_N_RESUB-1))
((PAYU_N_RESUB=PAYU_N_RESUB-1))
echo "${PAYU_N_RESUB}" > ${counterfile}
else
echo "Resubmit limit reached ... " >> ${logfile}
rm ${counterfile}
fi

0 comments on commit e0f5705

Please sign in to comment.