Skip to content
Snippets Groups Projects
Commit 74154ea0 authored by zhang's avatar zhang
Browse files

10/01/2011

 Add ErrorCoupling2Flag which is delicated for the soleil lattice with two half quadrupoles.

Now ErrorCouplingFlag is delicated for the lattice with full quadrupoles.
parent b94a01f6
Branches
Tags
No related merge requests found
......@@ -209,7 +209,7 @@ int main(int argc, char *argv[]) {
printglob(); /* print parameter list */
}
// add coupling by random rotating of the quadrupole magnets
// add coupling by random rotating of the full quadrupole magnets
if (ErrorCouplingFlag == true) {
SetErr(err_seed, err_rms);
Ring_GetTwiss(chroma = true, 0.0); /* Compute and get Twiss parameters */
......@@ -219,6 +219,16 @@ int main(int argc, char *argv[]) {
printglob(); /* print parameter list */
}
// add coupling by random rotating of the half quadrupole magnets, delicated for soleil
if (ErrorCoupling2Flag == true) {
SetErr2(err_seed, err_rms);
Ring_GetTwiss(chroma = true, 0.0); /* Compute and get Twiss parameters */
printlatt(); /* dump linear lattice functions into "linlat.dat" */
Coupling_Edwards_Teng();
GetEmittance(ElemIndex("cav"), true);
printglob(); /* print parameter list */
}
// WARNING Fit tunes and chromaticities before applying errors !!!!
//set multipoles in all magnets
// read multipole error from a file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment