Revision 752 branches/threaded2/src/linad99/fvar.hpp

fvar.hpp (revision 752)
709 709
  {
710 710
  public:
711 711
#if defined(USE_VECTOR_SHAPE_POOL)
712
    static __ADMBTHREAD__ vector_shape_pool * xpool;
712
    static __thread vector_shape_pool* xpool;
713 713
    void * operator new(size_t);
714 714
    void operator delete(void * ptr,size_t n)
715 715
    {  xpool->free(ptr); }
......
1044 1044
 * class for things related to the gradient structures, including dimension of 
1045 1045
 * arrays, size of buffers, etc.
1046 1046
 */
1047
  class gradient_structure
1048
  {
1049
      static __ADMBTHREAD__ char cmpdif_file_name[101];
1050
      static __ADMBTHREAD__ DF_FILE * fp;
1047
class gradient_structure
1048
{
1051 1049
public:
1052
      #if defined(NO_DERIVS)
1053
        static int no_derivatives;
1054
      #endif
1055
private:
1056
      static long int USE_FOR_HESSIAN;
1057
      static __ADMBTHREAD__ long int NVAR;
1058
      static int NUM_RETURN_ARRAYS;
1059
      static __ADMBTHREAD__ dvariable** RETURN_ARRAYS;
1060
      static __ADMBTHREAD__ int RETURN_ARRAYS_PTR;
1061
      static __ADMBTHREAD__ dvariable ** RETURN_PTR_CONTAINER;
1062
      static __ADMBTHREAD__ long int TOTAL_BYTES;
1063
      static __ADMBTHREAD__ long int PREVIOUS_TOTAL_BYTES;
1064
      static __ADMBTHREAD__ unsigned long ARRAY_MEMBLOCK_SIZE; //js
1065
      //static humungous_pointer ARRAY_MEMBLOCK_BASE;
1066
      //static humungous_pointer ARRAY_MEMBLOCK_BASEA;
1067
      //static humungous_pointer ARRAY_MEMBLOCK_SAVE;
1068
      static __ADMBTHREAD__ char * ARRAY_MEMBLOCK_BASE;
1069
      static __ADMBTHREAD__ char * ARRAY_MEMBLOCK_BASEA;
1070
      static __ADMBTHREAD__ char * ARRAY_MEMBLOCK_SAVE;
1071
public:    
1072
      static double * get_ARRAY_MEMBLOCK_BASE() 
1073
      { 
1074
        return (double*) ARRAY_MEMBLOCK_BASE;
1075
      }
1076
private:
1077
      static __ADMBTHREAD__ double * variables_save;
1078 1050
#ifdef __BORLANDC__
1079
      static long int CMPDIF_BUFFER_SIZE;
1080
      static long int GRADSTACK_BUFFER_SIZE;
1051
  static long int CMPDIF_BUFFER_SIZE;
1052
  static long int GRADSTACK_BUFFER_SIZE;
1081 1053
#else
1082
      static long long int CMPDIF_BUFFER_SIZE;
1083
      static long long int GRADSTACK_BUFFER_SIZE;
1054
  static __thread long long int CMPDIF_BUFFER_SIZE;
1055
  static __thread long long int GRADSTACK_BUFFER_SIZE;
1084 1056
#endif
1085
      static __ADMBTHREAD__ unsigned int MAX_NVAR_OFFSET;
1086
      static int save_var_file_flag;
1087
      static int save_var_flag;
1057
  static __thread DF_FILE* fp;
1058
  static __thread int instances;
1059
  static __thread dlist* GRAD_LIST;
1060
  static __thread int save_var_file_flag;
1061
  static __thread int save_var_flag;
1062
  static __thread int MAX_DLINKS;
1063
  static __thread int NUM_DEPENDENT_VARIABLES;
1064
  static __thread long int NVAR;
1065
  static __thread long int TOTAL_BYTES;
1066
  static __thread long int PREVIOUS_TOTAL_BYTES;
1067
  static __thread long int USE_FOR_HESSIAN;
1068
  static __thread int NUM_RETURN_ARRAYS;
1069
  static __thread unsigned long ARRAY_MEMBLOCK_SIZE;
1070
  static __thread unsigned int MAX_NVAR_OFFSET;
1071
  static __thread int RETURN_ARRAYS_SIZE;
1072
  static __thread long int max_last_offset;
1073
  static __thread int Hybrid_bounded_flag;
1074
  static __thread dvariable** RETURN_ARRAYS;
1075
  static __thread dvariable** RETURN_PTR_CONTAINER;
1076
  static __thread char* ARRAY_MEMBLOCK_BASE;
1077
  static __thread char* ARRAY_MEMBLOCK_BASEA;
1078
  static __thread char* ARRAY_MEMBLOCK_SAVE;
1079
  static __thread double* variables_save;
1080
  static __thread indvar_offset_list* INDVAR_LIST;
1081
  static __thread dependent_variables_information* DEPVARS_INFO;
1082
  static __thread double* hessian_ptr;
1083
  static __thread grad_stack* GRAD_STACK1;
1084
  static __thread dvariable* RETURN_PTR;
1085
  static __thread dvariable* MIN_RETURN;
1086
  static __thread dvariable* MAX_RETURN;
1087
  static __thread arr_list* ARR_LIST1;
1088
  static __thread arr_list* ARR_FREE_LIST1;
1089
#if defined(NO_DERIVS)
1090
  static __thread int no_derivatives;
1091
#endif
1092
  static __thread int RETURN_ARRAYS_PTR;
1093
  static __thread char cmpdif_file_name[101];
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff