Skip to content

Commit

Permalink
Changed so that a skew RF-multipole kick with phase 0 will be the sam…
Browse files Browse the repository at this point in the history
…e between Sixtrack and MAD-X. This also makes it consistent with the nomrmal multipoles.
  • Loading branch information
tpersson committed Nov 21, 2017
1 parent 776964d commit 909d49d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mad_6track.c
Expand Up @@ -2780,7 +2780,7 @@ static void write_rfmultipole(struct c6t_element* el)
name, el->out_1, el->out_2, el->out_3, el->out_4, el->out_5, el->out_6, el->out_7);
}
if (fabs(ksl[0])>eps_9) {
double lag = 0.25-el->value[19];
double lag = -0.25-el->value[19];
double pc0 = get_value("beam", "pc"); // GeV/c
el->out_1 = -23; // ID
el->out_2 = ksl[0] * pc0 * 1e3; // rad * GeV/c * 1e3 == rad * MeV/c => MV
Expand Down

0 comments on commit 909d49d

Please sign in to comment.