Page 1 of 1

&matrix_output

Posted: 09 Feb 2010, 10:07
by Max
I have a question about the &matrix_output option.
I am interested in computing the R-matrix terms in presence of closed orbit distortions:

&matrix_output
SDDS_output = %s.mat
individual_matrices = 1
&end

Since the R-terms turn out to be the same regardless of the amplitude of the closed orbit, I assume that
Elegant computes them for the basic lattice. Am I right ? How does on compute them with a lattice with
errors and at the perturbed closed orbit ?

Thanks, Max

Re: &matrix_output

Posted: 10 Feb 2010, 10:27
by michael_borland
Max,

By default the matrix_output command runs immediately when seen. However, the closed orbit is only run later in the main loop. You need to tell elegant to perform matrix_output later. You can do this by setting output_at_each_step=1 in matrix_output.

Let me know if that doesn't work.

--Michael