Skip to content

Commit

Permalink
Fix group number being treated as octal in gdas arch (#1053)
Browse files Browse the repository at this point in the history
The group number was being treated as an octal in gdas archive job, resulting in errors for being out-of-range when more than 7 groups were used.

Fixes #1032
  • Loading branch information
WalterKolczynski-NOAA authored Oct 6, 2022
1 parent 235d597 commit 9b3fa14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/rocoto/earc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ done

export COMPONENT=${COMPONENT:-atmos}

n=$((ENSGRP))
n=$((10#${ENSGRP}))

# ICS are restarts and always lag INC by $assim_freq hours.
EARCINC_CYC=$ARCH_CYC
Expand Down Expand Up @@ -63,7 +63,7 @@ source "${HOMEgfs}/ush/file_utils.sh"
###################################################################
# ENSGRP > 0 archives a group of ensemble members
firstday=$($NDATE +24 $SDATE)
if [[ $ENSGRP -gt 0 ]] && [[ $HPSSARCH = "YES" || $LOCALARCH = "YES" ]]; then
if (( 10#${ENSGRP} > 0 )) && [[ ${HPSSARCH} = "YES" || ${LOCALARCH} = "YES" ]]; then

#--set the archiving command and create local directories, if necessary
TARCMD="htar"
Expand Down

0 comments on commit 9b3fa14

Please sign in to comment.