Changeset 32 in TRACY3 for trunk/tracy/tracy/src/t2elem.cc
- Timestamp:
- Apr 9, 2014, 3:50:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tracy/tracy/src/t2elem.cc
r24 r32 885 885 886 886 Comments: 887 06/11/2012 Jianfeng Nadolski@ LAL887 06/11/2012 Jianfeng Zhang @ LAL 888 888 Fix the bug in the kick map of the exact Hamiltonian. 889 889 Add the second order of the approximate Hamiltonian. … … 893 893 void thin_kick(int Order, double MB[], double L, double h_bend, double h_ref, 894 894 ss_vect<T> &x) { 895 int j ;895 int j=0; 896 896 T BxoBrho, ByoBrho, ByoBrho1, B[3]; 897 897 T sqrtpx, dpx, ps2new, psnew; … … 2448 2448 2449 2449 Input: 2450 xref vector2451 x matrix2450 xref: 6*1 orbit 2451 x: 6*6 (optics) transfer matrix? 2452 2452 2453 2453 Output: 2454 xref 2455 x 2454 xref: 6*1 orbit 2455 x: 6*6 (optics) transfer matrix 2456 2456 2457 2457 Return: … … 2622 2622 */ 2623 2623 2624 double L ;2624 double L=0.0; 2625 2625 CellType *cellp; 2626 2626 elemtype *elemp; … … 2674 2674 ( 0 0 0 0 1 ) */ 2675 2675 2676 double t , sk, sk0, s, c;2676 double t=0.0, sk=0.0, sk0=0.0, s=0.0, c=0.0; 2677 2677 Matrix a, ah, av; 2678 2678 … … 2771 2771 cos phi */ 2772 2772 2773 double r , s, c, sk, p, fk, afk;2773 double r=0.0, s=0.0, c=0.0, sk=0.0, p=0.0, fk=0.0, afk=0.0; 2774 2774 Matrix edge, ah, av; 2775 double coef , scoef;2775 double coef=0.0, scoef=0.0; 2776 2776 2777 2777 if (irho == 0.0) { … … 4126 4126 ****************************************************************************/ 4127 4127 void Drift_Init(int Fnum1) { 4128 int i ;4128 int i=1; 4129 4129 ElemFamType *elemfamp; 4130 4130 CellType *cellp; … … 4171 4171 4172 4172 void Mpole_Init(int Fnum1) { 4173 double x ;4174 int i ;4173 double x=0.0; 4174 int i=1; 4175 4175 ElemFamType *elemfamp; 4176 4176 CellType *cellp;
Note: See TracChangeset
for help on using the changeset viewer.