Changeset 887


Ignore:
Timestamp:
Mar 5, 2008 5:07:43 AM (13 years ago)
Author:
forrest
Message:

change assert to test

File:
1 edited

Legend:

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

    r848 r887  
    781781#ifdef CBC_INSTRUMENT
    782782    int nn = numberTimesInfeasible_  - CoinMax(numberTimesUp_,numberTimesDown_);
    783     assert (nn>=0);
    784     if (nn)
     783    if (nn<0) {
     784      // Something to do with parallel synchronization
     785      numberTimesInfeasible_  = CoinMax(numberTimesUp_,numberTimesDown_);
     786    } else if (nn) {
    785787      returnValue *= sqrt((double) nn);
     788    }
    786789#endif
    787790#ifdef COIN_DEVELOP
Note: See TracChangeset for help on using the changeset viewer.