Tracking: PElegant blocked
Posted: 10 Dec 2021, 05:22
Dear All,
I am running a simple script to compute the dynamic aperture.
The behavior between Elegant and Pelegant is not the same.
The command is fine
elegant evalTemplate.ele -macro=rootname=mytest,turns=10
The command blocks
mpirun -n 2 Pelegant evalTemplate.ele -macro=rootname=mytest,turns=10
The bug appears when beam n_particles_per_bunch is set to >1
&bunched_beam n_particles_per_bunch=2 &end
In Pelegant, the programme is block
&find_aperture
output = %s.aper,
search_output = {NULL},
boundary = {NULL},
mode = n-line,
xmin = -1.000000000000000e-02,
xmax = 1.000000000000000e-02,
xpmin = 0.000000000000000e+00,
xpmax = 0.000000000000000e+00,
ymin = 0.000000000000000e+00,
ymax = 3.000000000000000e-03,
ypmin = 0.000000000000000e+00,
ypmax = 0.000000000000000e+00,
nx = 21,
n_splits = 1,
split_fraction = 1.000000000000000e-01,
desired_resolution = 1.000000000000000e-02,
ny = 11,
verbosity = 0,
assume_nonincreasing = 0,
offset_by_orbit = 0,
n_lines = 3,
full_plane = 0,
optimization_mode = 0,
&end
Updating floor coordinates
tracking step 1
Tracking fiducial particle (runFiducialParticle)
10 Dec 21 11:15:54: This step establishes energy profile vs s (fiducial beam).
10 Dec 21 11:15:54: Rf phases/references reset.
Tracking fiducial particle completed.
I am running a simple script to compute the dynamic aperture.
The behavior between Elegant and Pelegant is not the same.
The command is fine
elegant evalTemplate.ele -macro=rootname=mytest,turns=10
The command blocks
mpirun -n 2 Pelegant evalTemplate.ele -macro=rootname=mytest,turns=10
The bug appears when beam n_particles_per_bunch is set to >1
&bunched_beam n_particles_per_bunch=2 &end
In Pelegant, the programme is block
&find_aperture
output = %s.aper,
search_output = {NULL},
boundary = {NULL},
mode = n-line,
xmin = -1.000000000000000e-02,
xmax = 1.000000000000000e-02,
xpmin = 0.000000000000000e+00,
xpmax = 0.000000000000000e+00,
ymin = 0.000000000000000e+00,
ymax = 3.000000000000000e-03,
ypmin = 0.000000000000000e+00,
ypmax = 0.000000000000000e+00,
nx = 21,
n_splits = 1,
split_fraction = 1.000000000000000e-01,
desired_resolution = 1.000000000000000e-02,
ny = 11,
verbosity = 0,
assume_nonincreasing = 0,
offset_by_orbit = 0,
n_lines = 3,
full_plane = 0,
optimization_mode = 0,
&end
Updating floor coordinates
tracking step 1
Tracking fiducial particle (runFiducialParticle)
10 Dec 21 11:15:54: This step establishes energy profile vs s (fiducial beam).
10 Dec 21 11:15:54: Rf phases/references reset.
Tracking fiducial particle completed.