Skip to content

Commit

Permalink
Add array index to cycle_staus in launch script (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-hoo authored Jun 14, 2021
1 parent 3b0ed9a commit d96eccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ush/launch_FV3LAM_wflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ done <<< "${rocotostat_output}"
num_cycles_total=${#cycle_str[@]}
num_cycles_completed=0
for (( i=0; i<=$((num_cycles_total-1)); i++ )); do
if [ "${cycle_status}" = "Done" ]; then
if [ "${cycle_status[i]}" = "Done" ]; then
num_cycles_completed=$((num_cycles_completed+1))
fi
done
Expand Down

0 comments on commit d96eccc

Please sign in to comment.