From bdfa1497d8f57a1df95ffe50eb07023d806e768a Mon Sep 17 00:00:00 2001 From: "Walter.Kolczynski" Date: Mon, 3 Oct 2022 01:39:34 +0000 Subject: [PATCH] Fix decimal treated as octal issue in post After linter modifications, a variable was being treated as an octal, resulting in the wrong result when adding. --- scripts/exgdas_atmos_post.sh | 2 +- scripts/exgfs_atmos_post.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/exgdas_atmos_post.sh b/scripts/exgdas_atmos_post.sh index d7533b1ae7..98f109c29a 100755 --- a/scripts/exgdas_atmos_post.sh +++ b/scripts/exgdas_atmos_post.sh @@ -289,7 +289,7 @@ else ## not_anl if_stimes fi #wm Process pgb files - export FH=$(( fhr + 0 )) + export FH=$(( 10#${fhr} + 0 )) export downset=${downset:-1} ${GFSDOWNSH} export err=$?; err_chk diff --git a/scripts/exgfs_atmos_post.sh b/scripts/exgfs_atmos_post.sh index 3975da594d..6777b1a380 100755 --- a/scripts/exgfs_atmos_post.sh +++ b/scripts/exgfs_atmos_post.sh @@ -340,7 +340,7 @@ else ## not_anl if_stime # Process pgb files if [ "${PGBF}" = 'YES' ]; then - export FH=$(( fhr + 0 )) + export FH=$(( 10#${fhr} + 0 )) export downset=${downset:-2} ${GFSDOWNSH} export err=$?; err_chk @@ -402,7 +402,7 @@ else ## not_anl if_stime #Add extra flux.1p00 file for coupled if [ "${FLXGF}" = 'YES' ]; then - export FH=$(( fhr + 0 )) + export FH=$(( 10#${fhr} + 0 )) ${GFSDOWNSHF} export err=$?; err_chk fi