Revision 1921 trunk/src/linad99/set.cpp

set.cpp (revision 1921)
328 328
  {
329 329
    int min=x.indexmin();
330 330
    int max=min+n-1;
331
    #ifdef SAFE_ARRAYS
332 331
      if (max >x.indexmax())
333 332
      {
334 333
        cerr <<
335 334
          "index out of range in set_value_patial(const dvar_vector&, ... "
336 335
          << endl;
337 336
      }
338
    #endif
339 337
    for (int i=min;i<=max;i++)
340 338
    {
341 339
      ((dvar_vector&)(x))(i)=v(ii++);
......
356 354
  {
357 355
    int min=x.indexmin();
358 356
    int max=min+n-1;
359
    #ifdef SAFE_ARRAYS
360 357
      if (max >x.indexmax())
361 358
      {
362 359
        cerr <<
363 360
          "index out of range in set_value_patial(const dvar_vector&, ... "
364 361
             << endl;
365 362
      }
366
    #endif
367 363
    for (int i=min;i<=max;i++)
368 364
    {
369 365
      ((dvar_vector&)(x))(i)=boundp(v(ii++),fmin,fmax,fpen);

Also available in: Unified diff