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

08/04/2011

Move the setting of the family number of correctors, skew quadrupoles, bpms, gs, ge to globval, at soltracy.cc
parent f83ac216
No related branches found
No related tags found
No related merge requests found
...@@ -158,12 +158,7 @@ void Read_Lattice(char *fic) ...@@ -158,12 +158,7 @@ void Read_Lattice(char *fic)
globval.CODimax = 40L; /* maximum number of iterations for COD algo */ globval.CODimax = 40L; /* maximum number of iterations for COD algo */
globval.dPcommon = 1e-10; /* Common energy step for energy differentiation */ globval.dPcommon = 1e-10; /* Common energy step for energy differentiation */
globval.delta_RF = RFacceptance;/* energy acceptance for SOLEIL */ globval.delta_RF = RFacceptance;/* energy acceptance for SOLEIL */
globval.qt = ElemIndex("qt"); /* get family index of skew quadrupole */
globval.hcorr = ElemIndex("ch"); /* get family index of horizontal corrector */
globval.vcorr = ElemIndex("cv"); /* get family index of vertical corrector */
globval.bpm = ElemIndex("bpm"); /* get family index of bpm*/
//globval.g = ElemIndex("g"); /* get family index of girder*/
/* define x/y physical aperture, use the default values: +- 1 meter */ /* define x/y physical aperture, use the default values: +- 1 meter */
globval.Aperture_on = false; globval.Aperture_on = false;
...@@ -202,13 +197,7 @@ void Read_Lattice(char *fic) ...@@ -202,13 +197,7 @@ void Read_Lattice(char *fic)
globval.dPcommon = 1e-10; /* Common energy step for energy differentiation */ globval.dPcommon = 1e-10; /* Common energy step for energy differentiation */
globval.delta_RF = RFacceptance; /* 6% + epsilon energy acceptance for SOLEIL */ globval.delta_RF = RFacceptance; /* 6% + epsilon energy acceptance for SOLEIL */
globval.dPparticle = dP; globval.dPparticle = dP;
globval.qt = ElemIndex("qt"); /* get family index of skew quadrupole */
globval.hcorr = ElemIndex("ch"); /* get family index of horizontal corrector */
globval.vcorr = ElemIndex("vh"); /* get family index of vertical corrector */
globval.bpm = ElemIndex("bpm"); /* get family index of bpm*/
// globval.g = ElemIndex("g"); /* get family index of girder*/
/* define x/y physical aperture, use the default values: +- 1 meter */ /* define x/y physical aperture, use the default values: +- 1 meter */
globval.Aperture_on = false; globval.Aperture_on = false;
...@@ -218,7 +207,6 @@ void Read_Lattice(char *fic) ...@@ -218,7 +207,6 @@ void Read_Lattice(char *fic)
} }
/* SOLEIL print out lattice functions, with all the optical information for the lattice with design values */ /* SOLEIL print out lattice functions, with all the optical information for the lattice with design values */
printlatt("linlat.out"); printlatt("linlat.out");
printglob();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment