IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 99ff6eda authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by ralfulrich
Browse files

fixed ParticleCut

parent 651dd433
No related branches found
No related tags found
No related merge requests found
...@@ -90,11 +90,8 @@ namespace corsika::process { ...@@ -90,11 +90,8 @@ namespace corsika::process {
EProcessReturn ParticleCut::DoSecondaries(corsika::setup::StackView& vS) { EProcessReturn ParticleCut::DoSecondaries(corsika::setup::StackView& vS) {
auto particle = vS.begin(); auto particle = vS.begin();
while (particle != vS.end()) { while (particle != vS.end()) {
if (checkCutParticle(particle)) { if (checkCutParticle(particle)) { particle.Delete(); }
particle.Delete(); ++particle; // next entry in SecondaryView
} else {
++particle; // next entry in SecondaryView
}
} }
return EProcessReturn::eOk; return EProcessReturn::eOk;
} }
......
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