Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix group number being treated as octal in gdas arch #1053

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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