IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1f7a2c17 authored by ralfulrich's avatar ralfulrich
Browse files

the one and only way to remove particles after doContinuous

parent a93372ba
No related branches found
No related tags found
1 merge request!321Resolve "Weird LongitudinalProfile"
Pipeline #3528 failed
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment