Skip to content

Commit

Permalink
Fix *earc jobs where the number of members isn't a multiple of 10 (#2424
Browse files Browse the repository at this point in the history
)

This limits the earc search for ensemble members to the maximum number
of members, which prevents attempting to send non-existent members to
HPSS if the number of ensemble members is not a multiple of 10.

Resolves #2390s
  • Loading branch information
DavidHuber-NOAA committed Mar 25, 2024
1 parent daeb0c8 commit f0b912b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ if [[ ${type} == "enkfgdas" || ${type} == "enkfgfs" ]]; then
touch "${DATA}/${RUN}_restartb_grp${n}.txt"

m=1
while (( m <= NMEM_EARCGRP )); do
while (( m <= NMEM_EARCGRP && (n-1)*NMEM_EARCGRP+m <= NMEM_ENS )); do
nm=$(((n-1)*NMEM_EARCGRP+m))
mem=$(printf %03i ${nm})
head="${RUN}.t${cyc}z."
Expand Down

0 comments on commit f0b912b

Please sign in to comment.