IAP GITLAB

Commit 1f7a2c17 authored by Ralf Ulrich's avatar Ralf Ulrich

the one and only way to remove particles after doContinuous

parent a93372ba
Pipeline #3528 failed with stages
in 13 minutes and 2 seconds
......@@ -148,7 +148,13 @@ namespace corsika {
ProcessReturn::ParticleAbsorbed) {
CORSIKA_LOG_DEBUG("Cascade: delete absorbed particle PID={} E={} GeV",
vParticle.getPID(), vParticle.getEnergy() / 1_GeV);
if (!vParticle.isErased()) vParticle.erase();
if (vParticle.isErased()) {
CORSIKA_LOG_WARN(
"Particle marked as Absorbed in doContinuous, but prematurely erased. This "
"may be bug. Check.");
} else {
vParticle.erase();
}
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment