Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAD-X: Call, FILENAME Support #512

Open
ax3l opened this issue Feb 1, 2024 · 1 comment
Open

MAD-X: Call, FILENAME Support #512

ax3l opened this issue Feb 1, 2024 · 1 comment
Labels
changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults

Comments

@ax3l
Copy link
Member

ax3l commented Feb 1, 2024

Many MAD project files use nested files, e.g.:

Supporting the MAD-8

  CALL, FILENAME="other_file"

syntax could be helpful to avoid that we need to linearize such input decks.
http://mad8.web.cern.ch/mad8/user/switch_file.html#call

Seems to be in MAD-9/MAD-X of the syntax

  CALL, FILE="other_file"

http://mad9.web.cern.ch/mad9/user/node69.html
http://madx.web.cern.ch/madx/webguide/manual.html

@ax3l ax3l added the changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults label Feb 1, 2024
@ax3l
Copy link
Member Author

ax3l commented Feb 1, 2024

Chapter 5: http://madx.web.cern.ch/madx/webguide/manual.html

5.2 CALL

CALL, FILE="filename";

where filename is the name of an input file. The named file is then read until a RETURN statement is encountered, or until the End_Of_File; The file being ”called” may in turn contain any number of CALL statements itself, and so on to any depth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults
Projects
None yet
Development

No branches or pull requests

1 participant