Skip to content

Commit

Permalink
Merge pull request #2213 from dtcenter/bugfix_2208_ensemble_stat_miss…
Browse files Browse the repository at this point in the history
…ing_member

Bugfix #2208 ensemble_stat with missing members
  • Loading branch information
hsoh-u authored Jul 27, 2022
2 parents 5f1899a + 6fc7560 commit c0d6397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcode/vx_statistics/pair_data_ensemble.cc
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void PairDataEnsemble::compute_pair_vals(const gsl_rng *rng_ptr) {
for(j=0, n_vld=0, n_bel=0, n_tie=0; j<n_ens; j++) {

// Skip bad data
if(!is_bad_data(e_na[j][i])) {
if(e_na[j].n() > i && !is_bad_data(e_na[j][i])) {

// Increment the valid count
n_vld++;
Expand Down

0 comments on commit c0d6397

Please sign in to comment.