Revision 1946

trunk/src/linad99/jacob3.cpp (revision 1946)
153 153

  
154 154
    if(GRAD_STACK1->ptr <= GRAD_STACK1->ptr_first)
155 155
    {
156
      #ifdef SAFE_ARRAYS
156
#ifdef SAFE_ALL
157 157
        cerr << "warning -- calling gradcalc when no calculations generating"
158 158
         << endl << "derivative information have occurred" << endl;
159
      #endif
159
#endif
160 160
      g.initialize();
161 161
      return;
162 162
    }    // current is one past the end so -- it
trunk/src/linad99/jacobclc.cpp (revision 1946)
206 206

  
207 207
    if(GRAD_STACK1->ptr <= GRAD_STACK1->ptr_first)
208 208
    {
209
      #ifdef SAFE_ARRAYS
209
#ifdef SAFE_ALL
210 210
        cerr << "warning -- calling gradcalc when no calculations generating"
211 211
         << endl << "derivative information have occurred" << endl;
212
      #endif
212
#endif
213 213
      g.initialize();
214 214
      return;
215 215
    }    // current is one past the end so -- it
trunk/src/linad99/fvar_fn.cpp (revision 1946)
32 32
 */
33 33
prevariable& pow(const prevariable& v1, const double u)
34 34
    {
35
      #ifdef SAFE_ARRAYS
35
#ifndef OPT_LIB
36 36
        if (v1.v->x == 0)
37 37
        {
38 38
          cerr << "Error -- base = 0 in function"
39 39
            " prevariable& pow(const prevariable& v1, const double u)" << endl;
40 40
        }
41
      #endif
41
#endif
42 42
      if (++gradient_structure::RETURN_PTR > gradient_structure::MAX_RETURN)
43 43
        gradient_structure::RETURN_PTR = gradient_structure::MIN_RETURN;
44 44
      double x,y;
trunk/src/linad99/fvar2.cpp (revision 1946)
32 32
 */
33 33
double_and_int* gradnew()
34 34
{
35
#if defined (SAFE_ARRAYS)
35
#if !defined(OPT_LIB)
36 36
  if (!gradient_structure::instances)
37 37
  {
38 38
    cerr << "Error -- you are trying to create a dvariable object"
trunk/src/linad99/jacob2.cpp (revision 1946)
154 154

  
155 155
    if(GRAD_STACK1->ptr <= GRAD_STACK1->ptr_first)
156 156
    {
157
      #ifdef SAFE_ARRAYS
157
#ifdef SAFE_ALL
158 158
        cerr << "warning -- calling gradcalc when no calculations generating"
159 159
         << endl << "derivative information have occurred" << endl;
160
      #endif
160
#endif
161 161
      g.initialize();
162 162
      return;
163 163
    }    // current is one past the end so -- it
trunk/src/linad99/xgradclc.cpp (revision 1946)
97 97
  if(gradient_structure::GRAD_STACK1->ptr
98 98
       <= gradient_structure::GRAD_STACK1->ptr_first)
99 99
  {
100
    #ifdef SAFE_ARRAYS
100
#ifdef SAFE_ALL
101 101
      cerr <<
102 102
        "warning -- calling funnel_gradcalc when no calculations generating"
103 103
           << endl << "derivative information have occurred" << endl;
104
    #endif
104
#endif
105 105
    return;
106 106
  }    // current is one past the end so -- it
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff