Commit 9bb22a86 authored by snuverink_j's avatar snuverink_j
Browse files

Merge branch...

Merge branch '294-parallelcyclotrontracker-crashes-in-single-particle-mode-when-all-particles-are-lost' into 'master'

Resolve "ParallelCyclotronTracker crashes (in single particle?) mode when all particles are lost"

Closes #294

See merge request OPAL/src!69
parents bafa3470 f9a65945
......@@ -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