Revision 1838

trunk/src/linad99/fvar_ar1.cpp (revision 1838)
86 86
 */
87 87
dvar_vector::dvar_vector(const predvar_vector& pdv)
88 88
 {
89
 #ifdef SAFE_ALL
89
#ifndef OPT_LIB
90 90
   if (pdv.ub<pdv.lb)
91 91
   {
92 92
     cerr << "lower index greater than upper index in dvar_vector::"
......
106 106
       " operator(int lb,int ub) " << endl;
107 107
     ad_exit (1);
108 108
   }
109
  #endif
109
#endif
110 110
   index_min=pdv.lb;
111 111
   index_max=pdv.ub;
112 112
   shape=pdv.p->shape;
......
122 122
/*
123 123
dvar_vector::dvar_vector(const dvar_vector& t, int lb, int ub)
124 124
 {
125
 #ifdef SAFE_ALL
125
#ifndef OPT_LIB
126 126
   if (ub<lb)
127 127
   {
128 128
     cerr << "lower index greater than upper index in dvar_vector::"
......
142 142
       " operator(int lb,int ub) " << endl;
143 143
     ad_exit (1);
144 144
   }
145
  #endif
145
#endif
146 146

  
147

  
148 147
   index_min=lb;
149 148
   index_max=ub;
150 149
   shape=t.shape;

Also available in: Unified diff