Skip to content

Commit

Permalink
Fix decimal treated as octal issue in post
Browse files Browse the repository at this point in the history
After linter modifications, a variable was being treated as an octal, resulting
in the wrong result when adding.
  • Loading branch information
WalterKolczynski-NOAA committed Oct 4, 2022
1 parent f6bd60a commit bdfa149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/exgdas_atmos_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/exgfs_atmos_post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bdfa149

Please sign in to comment.