Skip to Content.
Sympa Menu

opal - Re: [Opal] Quick Question: manual default-value for attribute

opal AT

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] Quick Question: manual default-value for attribute

Chronological Thread  
  • From: "Adelmann Andreas (PSI)" <andreas.adelmann AT>
  • To: "Taubert, Sebastian" <taubert AT>
  • Cc: "opal AT" <opal AT>
  • Subject: Re: [Opal] Quick Question: manual default-value for attribute
  • Date: Tue, 5 Jan 2021 07:51:31 +0000
  • Accept-language: en-US, de-CH
  • Authentication-results: localhost; iprev=pass ( smtp.remote-ip=; spf=pass; dmarc=skipped

Hello Sebastian Happy New Year too! 

There is an easy way to do that:

pull all your initialisations into a file
   real k = 0;

In the main OPAL input execute the file:

call, “

No manipulate k. In order to reset, call “” again.

Hope that helps
Cheers A
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling 
Paul Scherrer Institut OHSA/ CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Zoom ID: 470-582-4086 Password: AdA
Zoom Link:

Friday: ETH HPK G 28   +41 44 633 3076
The more exotic, the more abstract the knowledge, 
the more profound will be its consequences.
Leon Lederman 

On 4 Jan 2021, at 15:37, Taubert, Sebastian <taubert AT> wrote:


Is it somehow possible in OPAL to call the default value for an element attribute (like HAPERT for SBEND) manually? I define some variables in the beginning of my input file. And sometimes I want to go back to the default value without commenting out every appearance of that variable and instead call this global variable for example NULL (or anything in that way). 

Have a good first week in 2021!

Doctoral Student
Accelerator Physics

Institut für Kernphysik
Johannes Gutenberg-Universität Mainz
Johann-Joachim-Becher-Weg 45
D - 55128 Mainz

E-Mail: taubert AT
Office: Due to Covid-19, temporarily not in office
Mobile: +49 1515 0535622

Archive powered by MHonArc 2.6.19.

Top of Page