Inconsistence in particleID generated with bunched_beam using Elegant and Pelegant

Moderators: cyao, michael_borland

Post Reply
duanz
Posts: 50
Joined: 30 May 2009, 01:50

Inconsistence in particleID generated with bunched_beam using Elegant and Pelegant

Post by duanz » 02 Feb 2020, 23:17

Hi Michael,

As shown in the attached example, I attempted to use the first_is_fiducial mode in run_control and bunched_beam, to generate a first beam with a single particle for fiducialization and then track the second beam with the desired beam distribution. If I execute Elegant, the particleIDs of the second beam starts from 2. In contrast, if I execute Pelegant, the particleIDs of the second beam starts from 1. This could lead to some inconsistence if one wants to alter the DT of MALIGN among a range of particleIDs, say, only for the second beam.

Best,

Zhe
Attachments
pid_inconsistence.tar.gz
(1.26 KiB) Downloaded 251 times

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Inconsistence in particleID generated with bunched_beam using Elegant and Pelegant

Post by michael_borland » 07 Feb 2020, 13:21

Zhe,

Thanks for reporting the bug. The fix will appear in the next release.

If you build from source, you can use the attached file.

--Michael
Attachments
bunched_beam.c
(49.16 KiB) Downloaded 251 times

Post Reply