Single-particle simulation gets stuck
Summary
The simulation hangs when try to run single-particle simulation in parallel.
Steps to reproduce
Run RingCyclotronSingleParticle regression test
mpirun -np 4 RingCyclotronSingleParticle.in
What is the current bug behavior?
The reduce function of IPPL called in Distribution::printDist
fails.
What is the expected correct behavior?
There is an exception in ParallelCyclotronTracker::initializeTracking_m
to avoid it, but the simulation gets stuck before entering the tracker.
Possible fixes
A feasible solution is introduced a check between the number of particles in the distribution and the number of nodes before that, in Distribution::checkParticleNumber