Skip to Content.
Sympa Menu

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

opal AT lists.psi.ch

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 psi.ch>
  • To: "Taubert, Sebastian" <taubert AT uni-mainz.de>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • 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 (psi-seppmail1.ethz.ch) smtp.remote-ip=129.132.93.141; spf=pass smtp.mailfrom=psi.ch; dmarc=skipped

Hello Sebastian Happy New Year too! 

There is an easy way to do that:

pull all your initialisations into a file init.in.

 init.in
   real k = 0;

In the main OPAL input execute the file:

call, “init.in

No manipulate k. In order to reset, call “init.in” 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: https://ethz.zoom.us/j/4705824086?pwd=dFcvT1pMMGY0bHg0dTNncUNZZTJkZz09

-------------------------------------------------------
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 uni-mainz.de> wrote:

Hi,

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!
Cheers,
Sebastian

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 uni-mainz.de
Office: Due to Covid-19, temporarily not in office
Mobile: +49 1515 0535622




Archive powered by MHonArc 2.6.19.

Top of Page