changing RCOL parameter with alter_elements command

Moderators: cyao, michael_borland

Post Reply
Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

changing RCOL parameter with alter_elements command

Post by Philippe Piot » 24 Mar 2020, 08:48

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.

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

Re: changing RCOL parameter with alter_elements command

Post by michael_borland » 30 Mar 2020, 12:27

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

Post Reply