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

RF-multipole kick with phase 0 will be the same between Sixtrack and MAD-X. #505

Merged
merged 1 commit into from Nov 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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