Revision 752 branches/threaded2/src/linad99/adglobl.cpp

adglobl.cpp (revision 752)
9 9
 * Description not yet available.
10 10
 */
11 11
#include <admodel.h>
12
#include <thread>
12 13

  
13
 int initial_params::straight_through_flag=0;
14
 unsigned char ad_comm::directory_prefix='\\';
15
 unsigned int ad_comm::wd_flag=0;
16
 adtimer * ad_comm::ptm=0;
17
 adtimer * ad_comm::ptm1=0;
18
 int ad_comm::bandwidth=0;
19
 adpvm_manager * ad_comm::pvm_manager=NULL;
20
 __ADMBTHREAD__ adpthreads_manager * ad_comm::pthreads_manager=0;
14
__thread int initial_params::straight_through_flag = 0;
21 15
 __ADMBTHREAD__ int  adpthreads_manager::slave_number=0;
22 16

  
23
 int ad_comm::time_flag=0;
24
 adstring ad_comm::subdir;
25
 cifstream * ad_comm::global_datafile=NULL;
26
 cifstream * ad_comm::global_parfile=NULL;
27
 ofstream *  ad_comm::global_savefile=NULL;
28
 ofstream *  ad_comm::global_logfile=NULL;
29
 uostream *  ad_comm::global_bsavefile=NULL;
30
 uistream *  ad_comm::global_bparfile=NULL;
31
 adstring ad_comm::adprogram_name;
32
 adstring ad_comm::working_directory_path;
33
 char ad_comm::option_flags[10];
34
 int ad_comm::argc=0;
35
 int ad_comm::no_pvm_flag=0;
36
 int ad_comm::no_atlas_flag=0;
37
 int ad_comm::print_hess_and_exit_flag;
38
 int ad_comm::no_ln_det_choleski_flag=0;
39
 char ** ad_comm::argv=NULL;
40
 double objective_function_value::fun_without_pen=0;
17
__thread int ad_comm::time_flag = 0;
18
__thread int ad_comm::bandwidth = 0;
19
__thread int ad_comm::print_hess_and_exit_flag = 0;
20
__thread int ad_comm::no_pvm_flag = 0;
21
__thread int ad_comm::no_atlas_flag = 0;
22
__thread int ad_comm::no_ln_det_choleski_flag = 0;
23
__thread adtimer* ad_comm::ptm = nullptr;
24
__thread adtimer* ad_comm::ptm1 = nullptr;
25
__thread adpvm_manager* ad_comm::pvm_manager = nullptr;
26
__thread adpthreads_manager* ad_comm::pthreads_manager = nullptr;
27
__thread adstring* ad_comm::subdir = nullptr;
28
__thread cifstream* ad_comm::global_datafile = nullptr;
29
__thread cifstream* ad_comm::global_parfile = nullptr;
30
__thread ofstream* ad_comm::global_savefile = nullptr;
31
__thread ofstream* ad_comm::global_logfile = nullptr;
32
__thread uostream* ad_comm::global_bsavefile = nullptr;
33
__thread uistream* ad_comm::global_bparfile = nullptr;
34
__thread adstring* ad_comm::adprogram_name;
35
__thread adstring* ad_comm::working_directory_path;
36
__thread char ad_comm::option_flags[10];
37
__thread unsigned int ad_comm::wd_flag = 0;
38
__thread unsigned char ad_comm::directory_prefix = '\\';
39
__thread int ad_comm::argc = 0;
40
__thread char** ad_comm::argv = nullptr;

Also available in: Unified diff