From b2b155122dac54897b04bb3dfd4a3e37659ffa4d Mon Sep 17 00:00:00 2001 From: zhang <zhang@9a6e40ed-f3a0-4838-9b4a-bf418f78e88d> Date: Tue, 11 Oct 2011 16:31:49 +0000 Subject: [PATCH] Add global variables to do ID correction: N_Fam_max; N_Fam; Q_Fam[]; Add function ID_corr0 ( ) which is written by Mao-sen Qiu at Tai wan light source. --- tracy/tracy/inc/nsls-ii_lib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tracy/tracy/inc/nsls-ii_lib.h b/tracy/tracy/inc/nsls-ii_lib.h index 7f7665b..da3d2ff 100644 --- a/tracy/tracy/inc/nsls-ii_lib.h +++ b/tracy/tracy/inc/nsls-ii_lib.h @@ -18,8 +18,9 @@ extern double x_max_FMA, y_max_FMA, delta_FMA; extern double delta_DA_; +extern const int N_Fam_max; //number of quadrupoles for ID correction extern char ae_file[max_str], fe_file[max_str], ap_file[max_str]; -extern int N_calls, N_steps; +extern int N_calls, N_steps, N_Fam, Q_Fam[]; //For ID correction extern double disp_wave_y; extern Vector2 beta_ref; @@ -258,6 +259,9 @@ void reset_quads(void); void ini_ID_corr(void); +// From Taiwan light source +bool ID_corr0(void); + bool ID_corr(const int N_calls, const int N_steps); void get_param(const char *param_file); -- GitLab