Warning, file /include/madX/mad_gvar.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef MAD_GVAR_H
0002 #define MAD_GVAR_H
0003
0004
0005
0006
0007
0008 extern int debuglevel;
0009
0010
0011
0012 extern struct char_array* aux_buff;
0013 extern struct char_array* c_dum;
0014 extern struct char_array* c_join;
0015 extern struct char_array* work;
0016 extern struct char_array* l_wrk;
0017
0018 extern struct char_p_array* tmp_p_array;
0019 extern struct char_p_array* tmp_l_array;
0020 extern struct char_p_array* line_buffer;
0021
0022 extern struct command* current_beam;
0023 extern struct command* probe_beam;
0024 extern struct command* options;
0025 extern struct command* plot_options;
0026 extern struct command* current_error;
0027 extern struct command* current_correct;
0028 extern struct command* current_ibs;
0029 extern struct command* current_touschek;
0030 extern struct command* current_survey;
0031 extern struct command* current_ptc;
0032 extern struct command* current_twiss;
0033 extern struct command* current_command;
0034 extern struct command* current_gweight;
0035 extern struct command* current_weight;
0036 extern struct command* current_match;
0037 extern struct command* current_eopt;
0038 extern struct command* threader_par;
0039 extern struct command* current_format_f;
0040
0041 extern struct command_list* beam_list;
0042 extern struct command_list* beta0_list;
0043 extern struct command_list* defined_commands;
0044 extern struct command_list* error_select;
0045 extern struct command_list* optics_select;
0046 extern struct command_list* optics_list;
0047 extern struct command_list* savebeta_list;
0048 extern struct command_list* seqedit_select;
0049 extern struct command_list* save_select;
0050 extern struct command_list* slice_select;
0051 extern struct command_list* stored_commands;
0052 extern struct command_list* stored_match_var;
0053 extern struct command_list* stored_track_start;
0054 extern struct command_list* sector_select;
0055 extern struct command_list* interp_select;
0056
0057 extern struct command_list_list* table_deselect;
0058 extern struct command_list_list* table_select;
0059
0060 extern struct constraint_list* comm_constraints;
0061 extern struct double_array* cat_doubles;
0062 extern struct double_array* doubles;
0063 extern struct double_array* twiss_deltas;
0064 extern struct double_array* vary_vect;
0065 extern struct double_array* vary_dvect;
0066 extern struct double_array* fun_vect;
0067 extern struct double_array* match_work[MATCH_WORK];
0068
0069 extern struct el_list* element_list;
0070 extern struct el_list* base_type_list;
0071 extern struct el_list* selected_elements;
0072
0073 extern struct expression* backup_expr;
0074
0075 extern struct in_buff_list* in;
0076 extern struct in_buff_list* pro;
0077
0078 extern struct int_array* deco;
0079 extern struct int_array* cat;
0080 extern struct int_array* d_var;
0081 extern struct int_array* oper;
0082 extern struct int_array* func;
0083 extern struct int_array* s_range;
0084 extern struct int_array* e_range;
0085 extern struct int_array* sd_range;
0086 extern struct int_array* ed_range;
0087 extern struct int_array* match_i_work[MATCH_WORK];
0088
0089 extern struct in_cmd* this_cmd;
0090 extern struct in_cmd* local_twiss[2];
0091 extern struct in_cmd* embedded_twiss_cmd;
0092
0093 extern struct in_cmd_list* buffered_cmds;
0094
0095 extern struct macro_list* line_list;
0096 extern struct macro_list* macro_list;
0097
0098 extern struct name_list* expr_chunks;
0099 extern struct name_list* occ_list;
0100 extern struct name_list* sxf_list;
0101
0102 extern struct node* prev_node;
0103 extern struct node* current_node;
0104 extern struct node* debug_node;
0105
0106 extern struct node_list* selected_ranges;
0107 extern struct node_list* sector_ranges;
0108
0109 extern struct sequence* current_sequ;
0110 extern struct sequence* edit_sequ;
0111
0112 extern struct sequence_list* sequences;
0113 extern struct sequence_list* match_sequs;
0114
0115 extern struct table* aperture_table;
0116 extern struct table* ibs_table;
0117 extern struct table* touschek_table;
0118 extern struct table* summ_table;
0119 extern struct table* twiss_table;
0120 extern struct table* twiss_table_beam1;
0121 extern struct table* twiss_table_beam2;
0122 extern struct table* twiss_sector_table;
0123 extern struct table* ptc_twiss_summary_table;
0124 extern struct table* map_table;
0125 extern struct table_list* table_register;
0126 extern struct table_list* moments_tables;
0127
0128 extern struct table* embedded_twiss_table;
0129 extern struct table* normal_results;
0130
0131 extern struct table* errors_dipole;
0132 extern struct table* errors_field;
0133 extern struct table* errors_total;
0134 extern struct table* errors_read;
0135
0136 extern struct table* survey_table;
0137 extern struct table* emit_table;
0138 extern struct table* emitsumm_table;
0139 extern struct table* corr_table;
0140 extern struct table* corr_table1;
0141 extern struct table* corr_table2;
0142 extern struct table* mon_table;
0143 extern struct table* orbit_table;
0144 extern struct table* sodd_table_70;
0145 extern struct table* sodd_table_71;
0146 extern struct table* sodd_table_72;
0147 extern struct table* sodd_table_73;
0148 extern struct table* sodd_table_74;
0149 extern struct table* sodd_table_75;
0150 extern struct table* sodd_table_76;
0151 extern struct table* sodd_table_77;
0152 extern struct table* sodd_table_78;
0153 extern struct table* sodd_table_79;
0154 extern struct table* target_table;
0155 extern struct table* model_table;
0156 extern struct table* orbin_table;
0157
0158
0159 extern struct table_list* optics_tables;
0160 extern struct table_list* table_register;
0161
0162 extern struct table_list_list* all_table_lists;
0163
0164 extern struct variable* current_variable;
0165 extern struct var_list* variable_list;
0166
0167 extern struct orb_cor* correct_orbit;
0168 extern struct orb_cor2* correct_orbit1;
0169 extern struct orb_cor2* correct_orbit2;
0170 extern struct orb_cor2* correct_orbit12;
0171
0172 extern double corrl;
0173
0174 extern struct table* efield_table;
0175 extern FILE* fddata;
0176 extern FILE* fcdata;
0177 extern FILE* ftdata;
0178 extern FILE* fgdata;
0179
0180 extern struct char_p_array* sdds_pat;
0181
0182 extern FILE* debug_file;
0183 extern FILE* stamp_file;
0184 extern FILE* out_file;
0185 extern FILE* prt_file;
0186 extern FILE* sec_file;
0187 extern FILE* tab_file;
0188
0189
0190
0191 extern char quote;
0192 extern char int_format[20],
0193 float_format[20],
0194 string_format[20];
0195 extern char blank[];
0196 extern char none[];
0197 extern char one_string[];
0198
0199
0200
0201 extern char* aux_char_pt;
0202 extern char* exx;
0203 extern char* current_link_group;
0204 extern char* current_range;
0205 extern char* title;
0206 extern char* match_seqs[2];
0207 extern char* match_beta[2];
0208 extern char* match_range[2];
0209 extern char* track_filename;
0210 extern char* track_fileext;
0211 extern char track_plot_filename[NAME_L];
0212
0213 extern double pi, twopi, degrad, raddeg, e, clight, hbar;
0214 extern double penalty;
0215 extern double match_tol;
0216 extern double orbit0[6];
0217 extern double disp0[6];
0218 extern double sxf_suml;
0219 extern double track_deltap;
0220 extern double oneturnmat[36];
0221
0222 extern const double zero;
0223 extern const double one;
0224 extern const double two;
0225 extern const double ten_p_3;
0226 extern const double ten_p_6;
0227 extern const double ten_p_9;
0228 extern const double ten_p_12;
0229 extern const double ten_m_3;
0230 extern const double ten_m_6;
0231 extern const double ten_m_9;
0232 extern const double ten_m_12;
0233 extern const double ten_m_15;
0234 extern const double ten_m_16;
0235 extern const double ten_m_19;
0236
0237 extern int add_error_opt;
0238 extern int backup_type;
0239
0240 extern int embedded_flag;
0241 extern int min_order;
0242 extern int print_correct_opt;
0243 extern int assign_start;
0244 extern int aux_count;
0245 extern int beam_info;
0246 extern int curr_obs_points;
0247 extern int current_calls;
0248 extern int current_call_lim;
0249 extern int current_const;
0250 extern int default_beam_saved;
0251 extern int edit_is_on;
0252 extern int final_message;
0253 extern int group_is_on;
0254 extern int guess_flag;
0255 extern int in_stop;
0256 extern int inbuf_level;
0257 extern int init_warn;
0258 extern int interactive;
0259 extern int keep_tw_print;
0260
0261 extern int match_calls;
0262 extern int match_is_on;
0263 extern int chrom_match;
0264 extern int match_num_beta;
0265 extern int match_num_range;
0266 extern int match_num_seqs;
0267 extern int mig_strategy;
0268 extern int jac_strategy;
0269 extern int jac_repeat;
0270 extern double jac_cool;
0271 extern double jac_balance;
0272 extern double jac_random;
0273 extern int jac_bisec;
0274 extern double jac_cond;
0275 extern int new_name_count;
0276 extern int next_rand;
0277 extern int plots_made;
0278 extern int polish_cnt;
0279 extern int print_match_summary;
0280
0281 extern int quote_toggle;
0282 extern int return_flag;
0283 extern int scrap_count;
0284 extern int seqedit_install;
0285 extern int seqedit_move;
0286 extern int seqedit_remove;
0287 extern int seqedit_replace;
0288 extern int sequ_is_on;
0289 extern int stamp_flag;
0290 extern int start_cnt;
0291 extern int start_var;
0292 extern int total_const;
0293 extern int total_vars;
0294 extern int track_is_on;
0295 extern int track_start_cnt;
0296 extern int twiss_success;
0297 extern int use_count;
0298 extern int vary_cnt;
0299 extern int watch_flag;
0300
0301 extern int na_err,
0302 nf_err,
0303 indent,
0304 b_level,
0305 sxf_elem_cnt,
0306 tag_flag,
0307 tag_cnt,
0308
0309 sxf_align_cnt,
0310 sxf_field_cnt,
0311 stop_flag,
0312 occnt_add,
0313 b_indent[100],
0314 add_indent[];
0315
0316 extern double
0317 guess_orbit[6],
0318 al_errors[ALIGN_MAX],
0319 fd_errors[FIELD_MAX];
0320
0321 extern char
0322 line[MADX_LINE_MAX],
0323 tag_type[MAX_TAG][16],
0324 tag_code[MAX_TAG][16];
0325
0326 extern time_t last_time,
0327 start_time;
0328
0329 extern char filenames[100][500];
0330 extern int currentline[100];
0331
0332 extern double** trackstrarpositions;
0333
0334 #endif
0335
0336