Changeset 32 in TRACY3 for trunk/tracy/tools/soltracy.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/tools/soltracy.cc

    r11 r32  
    127127  //print flat file with all the design values of the lattice,
    128128  prtmfile("flat_file.dat");
    129   // print location, twiss parameters and close orbit at all elements position to a file
    130   getcod(dP, lastpos);
    131   prt_cod("cod.out", globval.bpm, true);
    132 
     129 
     130  //find the closed orbit of a ring
     131  if(globval.RingType == 1){
     132    getcod(dP, lastpos);
     133   
     134    // compute up to 3rd order momentum compact factor
     135    get_alphac2();
     136  }
     137 
     138 
     139  // print location, twiss parameters and close orbit/orbit at the BPM positions to a file
     140    if(globval.bpm !=0){
     141      prt_beampos("6Dcod.out");
     142    }
     143 
     144   
     145   
     146   
     147 
     148 
     149   
     150 
    133151  //get_matching_params_scl(); // get tunes and beta functions at entrance
    134   // compute up to 3rd order momentum compact factor
    135   get_alphac2();
     152 
    136153  //cout << endl << "computing tune shifts" << endl;
    137154  //dnu_dA(10e-3, 5e-3, 0.002);
Note: See TracChangeset for help on using the changeset viewer.