Next: Parameter Statements
Up: Control Statements
Previous: STOP Statement
  Contents
  Index
OPTION Statement
The OPTION command controls global command execution and sets
a few global quantities:
OPTION,ECHO=logical,INFO=logical,TRACE=logical,VERIFY=logical,
WARN=logical,ADDERROR=logical,SEED=real,TELL=logical;
The first five logical flags activate or deactivate execution options:
- ECHO
-
Controls printing of an echo of input lines on the standard error file.
- INFO
-
If this option is turned off, MAD suppresses all information messages.
- MAD8
-
When the MAD8 option is on,
all output of the SHOW,
SAVE,
ESAVE, and
MAKESEQ is written in MAD-8 format.
MAD-9 can thus serve as a translator from MAD-9 to MAD-8 format.
- TRACE
-
When the TRACE option is on,
MAD writes additional trace information on the standard error file
for each executable command.
This information includes the command name
and elapsed CPU time before and after the command.
- VERIFY
-
If this option is on, MAD gives a message for each undefined variable
or element in a beam line.
- WARN
-
If this option is turned off, MAD suppresses all warning messages.
- ADDERROR
-
If this logical flag is set,
an EALIGN, EFIELD, or EFCOMP, causes the errors to
be added on top of existing ones.
If it is not set, new errors overwrite any previous definitions.
- SEED
-
Selects a particular sequence of random values.
A SEED value is an integer in the range [0...999999999] (default: 123456789).
SEED can be an expression.
See also: random values.
The last attribute requests listing of the current settings:
- TELL
-
If true, the current settings are listed.
Examples:
OPTION,ECHO=FALSE,TELL;
OPTION,SEED=987456321
Table 3.1:
Default Settings for Options
ECHO |
= true |
INFO |
= true |
TRACE |
= false |
VERIFY |
= false |
WARN |
= true |
ADDERROR |
= false |
SEED |
= 123456789 |
TELL |
= false |
Next: Parameter Statements
Up: Control Statements
Previous: STOP Statement
  Contents
  Index
MAD User Guide, http://wwwslap.cern.ch/mad/