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

ZJ updated from Tracy II.

Tested, works fine.
parent f5410e99
No related branches found
No related tags found
No related merge requests found
extern bool freq_map;
// dynamic aperture
extern const double delta ;
char* get_prm_scl(void);
void LoadFieldErr_scl(const char *FieldErrorFile, const bool Scale_it,
......
......@@ -249,11 +249,11 @@ void Dis_In(long *bpmdis, long *vcorrdis, long *hcorrdis,
/* high level functions for reading lattice file*/
void Read_Lattice(char *fic);
long get_bpm_number(void);
long get_hcorr_number(void);
long get_vcorr_number(void);
long get_qt_number(void);
//void Read_Lattice(char *fic);
//long get_bpm_number(void);
//long get_hcorr_number(void);
//long get_vcorr_number(void);
//long get_qt_number(void);
/* tracking */
......
......@@ -11,8 +11,9 @@
/**** Protypes ****/
void SetErr(void);
void InducedAmplitude(long spos);
void Hfonction(long pos, double dP,Vector2 H);
void Hcofonction(long pos, double dP,Vector2 H);
void Hfonction(long pos, double dP);
//void Hcofonction(long pos, double dP,Vector2 H);
void Hcofonction(long pos, double dP);
void Get_Disp_dp(void);
void read_corrh(void);
void set_vectorcod(Vector codvector[], double dP);
......@@ -42,10 +43,14 @@ void Dyna(long Nbx, long Nbz, long Nbtour, double xmax, double zmax,
/* Frequency map analysis */
void NuDp(long Nb, long Nbtour, double emax);
//void fmap(long Nbx, long Nbz, long Nbtour, double xmax, double zmax,
// double energy, bool diffusion, bool matlab);
//void fmapdp(long Nbx, long Nbe, long Nbtour, double xmax, double emax,
// double z, bool diffusion, bool matlab);
void fmap(long Nbx, long Nbz, long Nbtour, double xmax, double zmax,
double energy, bool diffusion, bool matlab);
double energy, bool diffusion);
void fmapdp(long Nbx, long Nbe, long Nbtour, double xmax, double emax,
double z, bool diffusion, bool matlab);
double z, bool diffusion);
void Nu_Naff(void);
void NuDx(long Nbx, long Nbz, long Nbtour, double xmax, double ymax,
double energy);
......
......@@ -60,7 +60,8 @@ const double eps_0 = 1.0/(sqr(c0)*mu_0); // permeability of free space
const double r_e = q_e/(4.0*M_PI*eps_0*m_e); // classical electron radius
const double h_bar = 6.58211899e-16; // reduced Planck constant [eV]
const double max_ampl = 10.0; // [m]
// const double max_ampl = 10.0; // [m] nsrl-ii
const double max_ampl = 1.0; // [m] soleil
enum pthicktype { thick = 0, thin = 1 };
......
......@@ -54,6 +54,11 @@ typedef struct globvalrec {
epsp; /* transverse and longitudinal projected
emittances */
int RingType; // 1 if a ring (0 if transfer line)
Vector bpm_list;
Vector hcorr_list;
Vector vcorr_list;
Vector qt_list;
} globvalrec;
......
......@@ -86,7 +86,10 @@ using namespace std;
#include "prtmfile.h"
#include "nsls-ii_lib.h"
#include "max4_lib.h"
#include "soleilcommon.h"
// Truncated Power Series Algebra (TPSA)
extern const int nv_tps, nd_tps, ndpt_tps, iref_tps;
extern int no_tps;
......
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