Bug for non-zero length ECOL element with offset

Moderators: michael_borland, soliday

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

Bug for non-zero length ECOL element with offset

Post by michael_borland » 05 Mar 2012, 12:28

There is a a bug for the ECOL element if the length is non-zero and the offset (DX or DY) is nonzero.

Three workarounds are possible:

* Use RCOL, if possible.

* Use a pair of ECOL elements separated by a drift space that is equal to the desired ECOL length.

* Instead of misaligning the ECOL element using the DY or DX parameters, bracket the ECOL by two MALIGN elements, as in
dyn: malign,dy=-0.02
dyp: malign,dy=0.02
col: ecol,...
bl: line=(dyn,col,dyp)

--Michael

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

Re: Bug for non-zero length ECOL element with offset

Post by michael_borland » 05 Mar 2012, 12:32

Here's the corrected source code for those who build from source.

--Michael
Attachments
limit_amplitudes.c
(28.05 KiB) Downloaded 153 times

Post Reply