If I run the attached ELE file, which changes the values of `N_KICKS` for KQUAD, KSEXT and UKICKMAP elements via `&alter_elements`, then the newly created LTE file `after_alter.lte` (also attached) no longer contains `SYSTEMATIC_MULTIPOLES` for KQUAD & KSEXT.
Could this be related to one of the bugs listed in the ELEGANT manual section 13.33.2?
By the way, UKICKMAP does preserve the string property `INPUT_FILE`.
A bug in &save_lattice?
Moderators: michael_borland, soliday
A bug in &save_lattice?
- Attachments
-
- after_alter.lte
- (597 Bytes) Downloaded 170 times
-
- before_alter.lte
- (708 Bytes) Downloaded 173 times
-
- alter.ele
- (498 Bytes) Downloaded 156 times
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: A bug in &save_lattice?
The problem is a typo in the definition of the quadrupoles. You have a spurious quotation mark at the end of the lines containing FSE values. This confuses the parser and it ignores the rest of the element definition.
--Michael
--Michael
Re: A bug in &save_lattice?
Oh, that was a dumb mistake on my part. The original LTE file is auto-generated by a script in a series of manipulations, and the quote characters appear to be somehow inserted along the way. I'll investigate my code. Thank you very much!