Page 1 of 1

Phase advance

Posted: 03 Jul 2023, 23:44
by Hao.S
Hi, I have a question about optimizing phase advance between two markers by elegant. The attachments are my elegant files. When I run this script, some errors will appear like as following.

unknown token: M1#2.nux
unknown token: M1#1.nux
too few items on stack (subtract)
*stop*
too few items on numeric stack (less)
too few items on logical stack (conditional_udf)
*stop*
too few items on stack (subtract)
*stop*
unknown token: M1#2.nuy
unknown token: M1#1.nuy
too few items on stack (subtract)
*stop*
too few items on numeric stack (less)
too few items on logical stack (conditional_udf)
*stop*
too few items on stack (subtract)
*stop*

Could you help me to solve this problem? Thanks !!!

Re: Phase advance

Posted: 16 Aug 2023, 12:52
by michael_borland
In order for phase advances to be available, you have to include a &twiss_output command with output_at_each_step=1.

--Michael