Commit c1c92f13 authored by kraus's avatar kraus

better update for variable numParticlesInSimulation_m which works for gun...

better update for variable numParticlesInSimulation_m which works for gun simulations as well as Monte Carlo simulations in degraders on GPUs
parent 462d7f02
......@@ -2037,8 +2037,9 @@ void ParallelTTracker::computeExternalFields() {
numParticlesInSimulation_m = itsBunch->getTotalNum();
}
if(numParticlesInSimulation_m > minBinEmitted_m) {
itsBunch->update();
if(numParticlesInSimulation_m > minBinEmitted_m || itsBunch->getTotalNum() > minBinEmitted_m) {
itsBunch->update();
numParticlesInSimulation_m = itsBunch->getTotalNum();
}
//dks check number of particles in each node, adjust cpu and gpu memory if bunch size exceeds
......
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