Revision 1110 trunk/src/df1b2-separable/df1b2fn2.cpp

df1b2fn2.cpp (revision 1110)
19 19

  
20 20
do_naught_kludge df1b2_init_number::do_naught_kludge_a;
21 21

  
22
//#define  ADDEBUG_PRINT 
22
//#define  ADDEBUG_PRINT
23 23
#if defined(ADDEBUG_PRINT)
24 24
    int addebug_count=0;
25 25
#endif
26 26

  
27 27
//df1b2_gradlist * f1b2gradlist = NULL;
28 28
int max_num_init_df1b2variable=500;
29
  
29

  
30 30
char AD_allocation_error_message[]="Error tryng to allocate memory for ";
31 31

  
32 32
int get_f1b2buffer_size(const char * s);
......
76 76
 */
77 77
int df1b2variable::get_blocksize(int n)
78 78
{
79
  return 6*n+5; 
80
  //return 6*n+4; 
79
  return 6*n+5;
80
  //return 6*n+4;
81 81
}
82 82

  
83 83
/**
......
93 93

  
94 94
//init_df1b2variable * init_df1b2variable::list[max_num_init_df1b2variable];
95 95
init_df1b2variable ** init_df1b2variable::list=0;
96
int df1b2variable::nvar=0; 
97
int df1b2variable::minder=0; 
98
int df1b2variable::maxder=0; 
99
int df1b2variable::blocksize=0; 
96
int df1b2variable::nvar=0;
97
int df1b2variable::minder=0;
98
int df1b2variable::maxder=0;
99
int df1b2variable::blocksize=0;
100 100
int init_df1b2variable::num_variables=0;
101 101
int df1b2_gradlist::no_derivatives=0;
102 102
int df1b2variable::passnumber=0;
......
105 105
void ad_read_pass2(void);
106 106
// should inline this
107 107
#if !defined(__BORLANDC__)
108
ptrdiff_t adptr_diff(void* x, void* y) 
109
{ 
108
ptrdiff_t adptr_diff(void* x, void* y)
109
{
110 110
  uintptr_t uintptrx = (uintptr_t)x;
111 111
  uintptr_t uintptry = (uintptr_t)y;
112
  return uintptrx - uintptry; 
112
  return uintptrx - uintptry;
113 113
}
114 114
#endif
115 115

  
......
132 132
  int nvar=((twointsandptr*)ptr)->ptr->nvar;
133 133
  initialize(nvar);
134 134
}
135
        
135

  
136 136
/**
137 137
 * Description not yet available.
138 138
 * \param
......
144 144
  int nbytes = (get_blocksize(n) - 2) * sizeof(double);
145 145
  memset(ptr + 2, 0, nbytes);
146 146
}
147
        
147

  
148 148
/**
149 149
 * Description not yet available.
150 150
 * \param
151 151
 */
152
  void init_df1b2variable::set_u_dot(void) 
152
  void init_df1b2variable::set_u_dot(void)
153 153
  {
154 154
    //int j;
155 155
    double uvalue=*get_u();
......
171 171
 * Description not yet available.
172 172
 * \param
173 173
 */
174
  void init_df1b2variable::operator = (double d) 
174
  void init_df1b2variable::operator = (double d)
175 175
  {
176 176
    //int nc=*ncopies;
177 177
    initialize();
......
189 189
 * Description not yet available.
190 190
 * \param
191 191
 */
192
  df1b2variable::df1b2variable(const df1b2variable& v) 
192
  df1b2variable::df1b2variable(const df1b2variable& v)
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff