Commit f9a65945 authored by snuverink_j's avatar snuverink_j
Browse files

for #294: add early return if number of particles is zero

parent f789e041
......@@ -2222,6 +2222,10 @@ bool ParallelCyclotronTracker::deleteParticle(){
<< "on stripper, collimator, septum, or out of cyclotron aperture"
<< endl;
if (totalnum == 0) {
return flagNeedUpdate;
Vector_t const meanR = calcMeanR();
Vector_t const meanP = calcMeanP();
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