Skip to content

Commit

Permalink
#2208 Check existence of ensemble member data before checking bad_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Jul 26, 2022
1 parent 8f6f304 commit b2766dd
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 b2766dd

Please sign in to comment.