7.24 error_control
- type: setup command
- sequence: must follow run_control.
- function: overall control of random errors.
- Command syntax, including use of equations and subcommands, is discussed in 7.2.
&error_control
long clear_error_settings = 1;
long summarize_error_settings = 0;
long no_errors_for_first_step = 0;
STRING error_log = NULL;
double error_factor = 1;
&end
- clear_error_settings — Clear all previous error settings.
- summarize_error_settings — Summarize current error settings. If non-zero, then the
command has no other function except showing a summary of the current error settings.
- no_errors_for_first_step — If non-zero, then there will be no errors for the first step.
This can be useful for fiducialization of phase and momentum profiles.
- error_log — The (incomplete) name of a SDDS file to which error values will be written.
Recommended value: “%s.erl”.
- error_factor — A value by which to multiply the error amplitudes in all error commands.
The proper use of this command can be confusing. A typical sequence will be as follows:
&error_control
clear_error_settings = 1,
error_log = %s.erl
&end
&error_element ... &end
&error_element ... &end
.
.
.
&error_element ... &end
&error_control
summarize_error_settings = 1
&end