Changeset 375


Ignore:
Timestamp:
Jun 15, 2006 3:30:48 PM (13 years ago)
Author:
jpfasano
Message:

Changed doubleParameter method. Code which must be executed was contained in an assert statement. When compiling with debug, some compilers will not generate this code. The fix was to move the code outside of the assert.

File:
1 edited

Legend:

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

    r373 r375  
    317317{
    318318  double value;
     319  bool getDblParamRetValue;
    319320  switch(type_) {
    320321  case DUALTOLERANCE:
    321     assert(model->getDblParam(OsiDualTolerance,value));
     322    getDblParamRetValue = model->getDblParam(OsiDualTolerance,value);
     323    assert(getDblParamRetValue);
    322324    break;
    323325  case PRIMALTOLERANCE:
    324     assert(model->getDblParam(OsiPrimalTolerance,value));
     326    getDblParamRetValue = model->getDblParam(OsiPrimalTolerance,value);
     327    assert(getDblParamRetValue);
    325328    break;
    326329  default:
Note: See TracChangeset for help on using the changeset viewer.