Changeset 2201


Ignore:
Timestamp:
Jun 23, 2015 9:22:42 AM (3 years ago)
Author:
stefan
Message:

have assert active only if not NDEBUG; remove workaround, bug should have been fixed by now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcModel.cpp

    r2200 r2201  
    73267326            cutsToDrop = new int[currentNumberCuts] ;
    73277327            assert (currentNumberCuts + numberRowsAtContinuous_ <= lastws->getNumArtificial());
    7328 #undef NDEBUG
    73297328            assert (currentNumberCuts <= maximumWhich_); // we will read from whichGenerator_[0..currentNumberCuts-1] below, so should have all these entries
    7330             // the above assert fails in certain situations, which indicates a bug in the code below
    7331             // as a workaround, resize whichGenerator_ to make sure we can read all entries without an invalid read from valgrind (and subsequent crash somewhere, seems so)
    7332             resizeWhichGenerator(maximumWhich_, currentNumberCuts);
    73337329            for (i = 0; i < currentNumberCuts; i++) {
    73347330                CoinWarmStartBasis::Status status =
Note: See TracChangeset for help on using the changeset viewer.