Ignore:
Timestamp:
Jun 26, 2007 5:59:58 AM (12 years ago)
Author:
forrest
Message:

update branches/devel for threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcCountRowCut.cpp

    r310 r642  
    4141                                int whichGenerator)
    4242  : OsiRowCut(rhs),
    43   owner_(info),
    44   ownerCut_(whichOne),
     43    owner_(info),
     44    ownerCut_(whichOne),
    4545    numberPointingToThis_(0),
    46   whichCutGenerator_(whichGenerator)
     46    whichCutGenerator_(whichGenerator)
    4747{
    4848#ifdef CHECK_CUT_COUNTS
     
    5858  // Look at owner and delete
    5959  owner_->deleteCut(ownerCut_);
     60  ownerCut_=-1234567;
    6061}
    6162// Increment number of references
     
    6364CbcCountRowCut::increment(int change)
    6465{
     66  assert(ownerCut_!=-1234567);
    6567  numberPointingToThis_+=change;
    6668}
     
    7072CbcCountRowCut::decrement(int change)
    7173{
    72   assert(numberPointingToThis_>=change);
     74  assert(ownerCut_!=-1234567);
     75  //assert(numberPointingToThis_>=change);
     76  assert(numberPointingToThis_>=0);
     77  if(numberPointingToThis_<change) {
     78    assert(numberPointingToThis_>0);
     79    printf("negative cut count %d - %d\n",numberPointingToThis_, change);
     80    change = numberPointingToThis_;
     81  }
    7382  numberPointingToThis_-=change;
    7483  return numberPointingToThis_;
    7584}
     85
    7686// Set information
    7787void
Note: See TracChangeset for help on using the changeset viewer.