Skip to content

Commit

Permalink
Check for zero fission cross section before sampling fission reaction (
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored and stchaker committed Oct 25, 2023
1 parent 7b5faff commit 138eb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/physics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 138eb5c

Please sign in to comment.