Skip to Content.
Sympa Menu

opal - Re: [Opal] opal-t "GS" w/ OPAL-2021.1

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] opal-t "GS" w/ OPAL-2021.1


Chronological Thread  
  • From: "Calvo Portela, Pedro" <Pedro.Calvo AT ciemat.es>
  • To: opal <opal AT lists.psi.ch>, "philippe.piot AT gmail.com" <philippe.piot AT gmail.com>
  • Subject: Re: [Opal] opal-t "GS" w/ OPAL-2021.1
  • Date: Fri, 19 Nov 2021 07:01:58 +0000
  • Accept-language: es-ES, en-US
  • Authentication-results: mx02.puc.rediris.es; spf=pass (rediris.es: domain of Pedro.Calvo AT ciemat.es designates 192.101.167.71 as permitted sender) smtp.mailfrom=Pedro.Calvo AT ciemat.es

Hi Phillipe


Since OPAL2021.1 we use predefined constants to declare command attributes (see https://gitlab.psi.ch/OPAL/src/-/issues/654). Thus, we avoid misassignment of these variables, but now some string names are not available to be used as label of elements or beamlines. In your case, GS is a fieldsolver attribute (AMR_MG_SMOOTHER), so you cannot use it.


Best regards

Pedro


De: opal-request AT lists.psi.ch <opal-request AT lists.psi.ch> en nombre de Philippe Piot <philippe.piot AT gmail.com>
Enviado: viernes, 19 de noviembre de 2021 0:46:40
Para: opal
Asunto: [Opal] opal-t "GS" w/ OPAL-2021.1
 
Dear All,
  Is there anything special to the "GS" string in OPAL-2021.1? I have a beamline call GS something as simple as 
GS:  Line = (GUN,DR1); 
 OPAL would not run and gives the error
Error{6}>
Error{6}> *** User error detected by function "OpalData::define()"
Error{6}>     You cannot replace the object "GS".
Error{6}>     You cannot replace the object "GS".

After fiddling around I decided to rename the beamline GS1 and everything worked fine! From the source, I could not figure out why "GS" is giving this error. 
  Thank you, -- Philippe. 

PS: and this works fine with OPAL-2.4




Archive powered by MHonArc 2.6.19.

Top of Page