Page 1 of 1

matrix_output and start_from_occurence

Posted: 09 Oct 2017, 10:16
by tennant
Hi,

I have a line definition with several instances of the same element (think repeating FODO cell) and am trying to use matrix_output to get the matrix from each instance of an element to the end of the line. However, I keep getting an error when trying to use start_from_occurrence. I've attached example files to illustrate.

Any help would be appreciated. Thanks!
chris

P.S. The elegant manual, correctly, reads start_from_occurrence. However, it only works if you misspell it in the .ele file as start_from_occurence.

Re: matrix_output and start_from_occurence

Posted: 09 Oct 2017, 10:26
by michael_borland
Chris,

The problem is that elegant translates the lattice into upper case. You give "q0" as the element name, which doesn't match "Q0". Just give start_from="Q0" instead.

As for occurence vs occurrence, elegant has had the spelling wrong since 1986 or thereabouts. We decided not to change it when someone pointed it out in the late 1990's, to avoid breaking input files. We'll fix the manual to have the wrong spelling.

--Michael

Re: matrix_output and start_from_occurence

Posted: 09 Oct 2017, 10:30
by tennant
Thanks Michael! Re: spelling error, it helps to have the misspellings in the manual as often I will copy and paste commands.