mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Fix bug when using <nuclides>all</nuclides> with a void material present.
This commit is contained in:
parent
74fb90a923
commit
891ad670b7
1 changed files with 7 additions and 4 deletions
|
|
@ -498,7 +498,9 @@ contains
|
|||
filter_index = sum((matching_bins(1:t%n_filters) - 1) * t % stride) + 1
|
||||
|
||||
if (t % all_nuclides) then
|
||||
call score_all_nuclides(p, i_tally, flux, filter_index)
|
||||
if (p % material /= MATERIAL_VOID) then
|
||||
call score_all_nuclides(p, i_tally, flux, filter_index)
|
||||
end if
|
||||
else
|
||||
|
||||
NUCLIDE_BIN_LOOP: do k = 1, t % n_nuclide_bins
|
||||
|
|
@ -1167,9 +1169,10 @@ contains
|
|||
filter_index = sum((matching_bins(1:t%n_filters) - 1) * t % stride) + 1
|
||||
|
||||
if (t % all_nuclides) then
|
||||
! Score reaction rates for each nuclide in material
|
||||
call score_all_nuclides(p, i_tally, flux, filter_index)
|
||||
|
||||
if (p % material /= MATERIAL_VOID) then
|
||||
! Score reaction rates for each nuclide in material
|
||||
call score_all_nuclides(p, i_tally, flux, filter_index)
|
||||
end if
|
||||
else
|
||||
NUCLIDE_BIN_LOOP: do b = 1, t % n_nuclide_bins
|
||||
! Get index of nuclide in nuclides array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue