Skip to content

Commit

Permalink
Update update_packets.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 17, 2024
1 parent 8bba25b commit 6299907
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update_packets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ void do_nonthermal_predeposit(Packet &pkt, const int nts, const double t2) {
// and if a deposition event occurred, also the discrete Monte Carlo count deposition rate
// for DETAILEDWITHGAMMAPRODUCTS, gamma-ray deposition will lead to predeposit beta particles, but they will count
// toward "gamma deposition" not particle deposition
if (pkt.originated_from_particlenotgamma) {
if (PARTICLE_THERMALISATION_SCHEME != ThermalisationScheme::DETAILEDWITHGAMMAPRODUCTS ||
pkt.originated_from_particlenotgamma) {
if (priortype == TYPE_NONTHERMAL_PREDEPOSIT_BETAMINUS) {
atomicadd(globals::dep_estimator_electron[nonemptymgi], en_deposited);
if (pkt.type == deposit_type) {
Expand Down

0 comments on commit 6299907

Please sign in to comment.