Skip to content

Commit

Permalink
Enxure that the secondary energy attribute is zeroed-out when revivin…
Browse files Browse the repository at this point in the history
…g a particle from a secondary
  • Loading branch information
pshriwise committed Dec 16, 2024
1 parent 77d074b commit a4ccc4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ void Particle::event_revive_from_secondary()
from_source(&secondary_bank().back());
secondary_bank().pop_back();
n_event() = 0;
bank_second_E() = 0.0;

// Subtract secondary particle energy from interim pulse-height results
if (!model::active_pulse_height_tallies.empty() &&
Expand Down

0 comments on commit a4ccc4e

Please sign in to comment.