mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Check for zero fission cross section before sampling fission reaction (#2600)
This commit is contained in:
parent
75a5d84a5b
commit
46866cb33a
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ void sample_neutron_reaction(Particle& p)
|
|||
|
||||
const auto& nuc {data::nuclides[i_nuclide]};
|
||||
|
||||
if (nuc->fissionable_) {
|
||||
if (nuc->fissionable_ && p.neutron_xs(i_nuclide).fission > 0.0) {
|
||||
auto& rx = sample_fission(i_nuclide, p);
|
||||
if (settings::run_mode == RunMode::EIGENVALUE) {
|
||||
create_fission_sites(p, i_nuclide, rx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue