Changeset 396 for trunk


Ignore:
Timestamp:
Jul 3, 2006 11:05:22 AM (14 years ago)
Author:
forrest
Message:

bug in deprecated code

File:
1 edited

Legend:

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

    r395 r396  
    65796579  currentPassNumber_=0;
    65806580  synchronizeModel(); // make sure everything that needs solver has it
     6581  if (!solverCharacteristics_) {
     6582    OsiBabSolver * solverCharacteristics = dynamic_cast<OsiBabSolver *> (solver_->getAuxiliaryInfo());
     6583    if (solverCharacteristics) {
     6584      solverCharacteristics_ = solverCharacteristics;
     6585    } else {
     6586      // replace in solver
     6587      OsiBabSolver defaultC;
     6588      solver_->setAuxiliaryInfo(&defaultC);
     6589      solverCharacteristics_ = dynamic_cast<OsiBabSolver *> (solver_->getAuxiliaryInfo());
     6590    }
     6591  }
     6592  solverCharacteristics_->setSolver(solver_);
    65816593  // just point to solver_
    65826594  delete continuousSolver_;
Note: See TracChangeset for help on using the changeset viewer.