From f40d6e69a45653c1a53c2f53102e9657dfd578d8 Mon Sep 17 00:00:00 2001 From: Kate Friedman Date: Wed, 7 Feb 2024 14:59:32 -0500 Subject: [PATCH 1/2] Update JGLOBAL_FORECAST for octal error Add "10#" to ENSMEM value > 0 check to handle octal errors. --- jobs/JGLOBAL_FORECAST | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/JGLOBAL_FORECAST b/jobs/JGLOBAL_FORECAST index 4e2f49ca37..37bbe77200 100755 --- a/jobs/JGLOBAL_FORECAST +++ b/jobs/JGLOBAL_FORECAST @@ -1,8 +1,8 @@ #! /usr/bin/env bash source "${HOMEgfs}/ush/preamble.sh" -if (( ${ENSMEM:-0} > 0 )); then - source "${HOMEgfs}/ush/jjob_header.sh" -e "efcs" -c "base fcst efcs" +if (( 10#${ENSMEM:-0} > 0 )); then +source "${HOMEgfs}/ush/jjob_header.sh" -e "efcs" -c "base fcst efcs" else source "${HOMEgfs}/ush/jjob_header.sh" -e "fcst" -c "base fcst" fi From 5baa4581de1aaa46cee0d8197e5264709d8fe1bc Mon Sep 17 00:00:00 2001 From: Kate Friedman Date: Wed, 7 Feb 2024 15:06:58 -0500 Subject: [PATCH 2/2] Put indentation back in JGLOBAL_FORECAST --- jobs/JGLOBAL_FORECAST | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/JGLOBAL_FORECAST b/jobs/JGLOBAL_FORECAST index 37bbe77200..bfdc7e3688 100755 --- a/jobs/JGLOBAL_FORECAST +++ b/jobs/JGLOBAL_FORECAST @@ -2,7 +2,7 @@ source "${HOMEgfs}/ush/preamble.sh" if (( 10#${ENSMEM:-0} > 0 )); then -source "${HOMEgfs}/ush/jjob_header.sh" -e "efcs" -c "base fcst efcs" + source "${HOMEgfs}/ush/jjob_header.sh" -e "efcs" -c "base fcst efcs" else source "${HOMEgfs}/ush/jjob_header.sh" -e "fcst" -c "base fcst" fi