Mirrored elements in save_lattice

Moderators: michael_borland, soliday

Post Reply
michael_abo-bakr
Posts: 4
Joined: 29 Oct 2013, 11:46

Mirrored elements in save_lattice

Post by michael_abo-bakr » 09 Apr 2026, 04:57

Hello,

while using save_lattice I realized that "mirroring" of elements seems to get lost.

To use lattice symmetry I split a bend in two halfs instead of one single element:

B:CSBEND, L="LBEND", Angle="ABEND", E1="ABEND 2 /", E2="ABEND 2 /"
-->
BH:CSBEND, L="LBEND 2 /", Angle="ABEND / 2", E1="ABEND 2 /", E2="0"
B:Line(BH,-BH)

In the saved lattice the minus is disappeared and B is BH,BH instead of BH,-BH. This matters of course only for (the few) "asymmetric" elements. But split bends with unequal edges are used quite often and the user should be aware that asymmetric elements are not mirrored in saved lattice.

Hope not to repeatedly report this observation ...

Best regards, Michael

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

Re: Mirrored elements in save_lattice

Post by michael_borland » 16 Apr 2026, 11:57

Michael,

I confirmed this bug for &save_lattice with output_seq=1 and will look into fixing it. If you can use output_seq=0, that works as expected.

--Michael

Post Reply