Changeset 32 in TRACY3 for trunk/tracy/tracy/src/t2elem.cc


Ignore:
Timestamp:
Apr 9, 2014, 3:50:11 PM (10 years ago)
Author:
zhangj
Message:

active the transport of the twiss functions and orbits of the transfer line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tracy/tracy/src/t2elem.cc

    r24 r32  
    885885
    886886 Comments:
    887  06/11/2012     Jianfeng Nadolski @ LAL
     887 06/11/2012     Jianfeng Zhang @ LAL
    888888                Fix the bug in the kick map of the exact Hamiltonian.
    889889                Add the second order of the approximate Hamiltonian.
     
    893893void thin_kick(int Order, double MB[], double L, double h_bend, double h_ref,
    894894        ss_vect<T> &x) {
    895     int j;
     895    int j=0;
    896896    T BxoBrho, ByoBrho, ByoBrho1, B[3];
    897897    T sqrtpx, dpx, ps2new, psnew;
     
    24482448
    24492449 Input:
    2450  xref vector
    2451  x    matrix
     2450 xref: 6*1 orbit
     2451 x:    6*6 (optics) transfer matrix?
    24522452
    24532453 Output:
    2454  xref
    2455  x
     2454 xref:  6*1 orbit
     2455 x:   6*6 (optics) transfer matrix
    24562456
    24572457 Return:
     
    26222622     */
    26232623
    2624     double L;
     2624    double L=0.0;
    26252625    CellType *cellp;
    26262626    elemtype *elemp;
     
    26742674     (  0    0     0    0       1  )                     */
    26752675
    2676     double t, sk, sk0, s, c;
     2676    double t=0.0, sk=0.0, sk0=0.0, s=0.0, c=0.0;
    26772677    Matrix a, ah, av;
    26782678
     
    27712771     cos phi                                              */
    27722772
    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;
    27742774    Matrix edge, ah, av;
    2775     double coef, scoef;
     2775    double coef=0.0, scoef=0.0;
    27762776
    27772777    if (irho == 0.0) {
     
    41264126 ****************************************************************************/
    41274127void Drift_Init(int Fnum1) {
    4128     int i;
     4128    int i=1;
    41294129    ElemFamType *elemfamp;
    41304130    CellType *cellp;
     
    41714171
    41724172void Mpole_Init(int Fnum1) {
    4173     double x;
    4174     int i;
     4173    double x=0.0;
     4174    int i=1;
    41754175    ElemFamType *elemfamp;
    41764176    CellType *cellp;
Note: See TracChangeset for help on using the changeset viewer.