Page 1 of 1

changing RCOL parameter with alter_elements command

Posted: 24 Mar 2020, 08:48
by Philippe Piot
Hi,
I have a lattice file with a collimator defined as
VS: rcol, XMAX=0.0001
in my .ele file I try to change XMAX via the alter command
&alter_elements
name = VS,
item = "xmax"
value = 0.001
&end
and got the error message "Error: element VS does not have parameter xmax". I have vainly tried various ways (no "", capitalized vs uncapitalized for xmax in the item line).

Thank you for your help, -- Philippe.

Re: changing RCOL parameter with alter_elements command

Posted: 30 Mar 2020, 12:27
by michael_borland
Philippe,

The problem is that when using alter_elements, you need to give the exact name of the parameter, "X_MAX". The lattice parser will accept XMAX, but other routes of changing parameters need to use the exact name as given on the manual page.

--Michael