Adding check for a valid delayed group filter when scoring.

This commit is contained in:
Patrick Shriwise 2019-04-02 15:09:10 -05:00
parent cc09ba4a5b
commit 039d5c0b63

View file

@ -257,7 +257,9 @@ score_fission_eout(const Particle* p, int i_tally, int i_score, int score_bin)
#pragma omp atomic
tally.results_(filter_index, i_score, RESULT_VALUE) += score;
} else if (score_bin == SCORE_DELAYED_NU_FISSION && g != 0) {
} else if (score_bin == SCORE_DELAYED_NU_FISSION &&
g != 0 &&
tally.delayedgroup_filter_ > 0) {
// Get the index of the delayed group filter
auto i_dg_filt = tally.filters()[tally.delayedgroup_filter_];