Skip to content

Commit

Permalink
Fixed octal bug in earc script. NOAA-EMC#1195 NOAA-EMC#1297
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Feb 8, 2023
1 parent 468a18a commit 41c7f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/exgdas_enkf_earc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if (( 10#${ENSGRP} > 0 )) && [[ ${HPSSARCH} = "YES" || ${LOCALARCH} = "YES" ]];
SAVEWARMICB="NO"
mm=$(echo "${CDATE}"|cut -c 5-6)
dd=$(echo "${CDATE}"|cut -c 7-8)
nday=$(( (mm-1)*30+dd ))
nday=$(( (10#mm-1)*30+10#dd ))
mod=$((nday % ARCH_WARMICFREQ))
if [ "${CDATE}" -eq "${firstday}" ] && [ "${cyc}" -eq "${EARCINC_CYC}" ]; then SAVEWARMICA="YES" ; fi
if [ "${CDATE}" -eq "${firstday}" ] && [ "${cyc}" -eq "${EARCICS_CYC}" ]; then SAVEWARMICB="YES" ; fi
Expand Down

0 comments on commit 41c7f66

Please sign in to comment.