mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Adding check for a valid delayed group filter when scoring.
This commit is contained in:
parent
cc09ba4a5b
commit
039d5c0b63
1 changed files with 3 additions and 1 deletions
|
|
@ -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_];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue