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 Aug 9, 2023
1 parent 75a5d84 commit 46866cb
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 46866cb

Please sign in to comment.