Commit 578a6c27 authored by Adelmann Andreas's avatar Adelmann Andreas
Browse files

Update according to number of particles emitted

parent fe09a5b6
......@@ -2432,8 +2432,9 @@ void ParallelTTracker::computeExternalFields() {
numParticlesInSimulation_m = itsBunch->getTotalNum();
}
if (itsBunch->getTotalNum() > 1)
itsBunch->update();
if(numParticlesInSimulation_m > minBinEmitted_m) {
itsBunch->update();
}
/// indicate at least one a node has only 1 particles
if(surfaceStatus_m) {
......@@ -3244,4 +3245,4 @@ Vector_t ParallelTTracker::calcMeanP() const {
}
reduce(meanP, meanP, OpAddAssign());
return meanP / Vector_t(itsBunch->getTotalNum());
}
\ No newline at end of file
}
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