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

20/10/2010

1)  Fix the bug to read blank line in ReadCh( )

2)  Add functions to read multipole errors
      from a file, and then add all the errors
      to the previous values of the
       corresponding multipoles, and then
         the  summation value replace the
        previous values.
         Speicific for the multipole error in Soleil ring.
parent f08b124d
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
*/
/**** Protypes ****/
void SetErr(void);
void SetErr(long seed,double fac);
void InducedAmplitude(long spos);
void Hfonction(long pos, double dP);
//void Hcofonction(long pos, double dP,Vector2 H);
......@@ -85,4 +85,32 @@ void spectrum(long Nbx, long Nbz, long Nbtour, double xmax, double zmax,
double energy, bool diffusion);
/* coupling*/
void Coupling_Edwards_Teng(void);
void Coupling_Edwards_Teng(void);
/* get and set RF voltage */
double get_RFVoltage(const int Fnum);
void set_RFVoltage(const int Fnum, const double V_RF);
/* Read multipole errors from a file for soleil*/
void ReadFieldErr(const char *FieldErrorFile);
void AddFieldErrors(const char *name, const double r0,
const int n, const double Bn, const double An);
void AddFieldValues_type(const int N, const double r0,
const int n, const double Bn, const double An);
void AddFieldValues_fam(const int Fnum, const double r0,
const int n, const double Bn, const double An);
void add_bnL_sys_elem(const int Fnum, const int Knum,
const int n, const double bnL, const double anL);
void SetCorrQtErr_fam(char const *fic, const int Fnum, const double conv, const double r0,
const int n, const double Bn, const double An);
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