Commit 2277360c authored by frey_m's avatar frey_m
Browse files

Multi-bunch simulation OPAL-Cycl

In case of a multi-bunch simulation with

MBMODE=FORCE (in OPAL input file)

the npart_mb, q_mb, p_mb, m_mb and r_mb are not set. Leading to a segfault.
I did as provisional fix in ParallelCyclotronTracker::Tracker_Generic()
(A 10 bunch simulation worked without errors).

modified:   src/Algorithms/ParallelCyclotronTracker.cpp
parent 614f4794
......@@ -2911,7 +2911,10 @@ void ParallelCyclotronTracker::Tracker_Generic() {
// read initial distribution from h5 file
if (multiBunchMode_m == 1) {
if (BunchCount_m == 2)
readOneBunch(BunchCount_m - 1);
if (timeIntegrator_m == 0) itsBunch->resetPartBinID2(eta_m);
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