Changeset 1971


Ignore:
Timestamp:
Oct 19, 2013 11:55:33 AM (5 years ago)
Author:
stefan
Message:

commit pietros suggestions to handle derived CbcModel? classes in CbcThread?'s

Location:
trunk/Cbc/src
Files:
3 edited

Legend:

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

    r1951 r1971  
    55555555}
    55565556
     5557// Cloning method
     5558
     5559CbcModel *CbcModel::clone (bool cloneHandler) {
     5560  return new CbcModel (*this, cloneHandler);
     5561}
     5562
     5563
    55575564// Copy constructor.
    55585565
  • trunk/Cbc/src/CbcModel.hpp

    r1943 r1971  
    19451945    */
    19461946    CbcModel(const CbcModel & rhs, bool cloneHandler = false);
     1947
     1948    /** Clone */
     1949    virtual CbcModel *clone (bool cloneHandler);
    19471950
    19481951    /// Assignment operator
  • trunk/Cbc/src/CbcThread.cpp

    r1949 r1971  
    570570        model.setStrategy(NULL);
    571571        for (int i = 0; i < numberThreads_; i++) {
    572             threadModel_[i] = new CbcModel(model, true);
     572            //threadModel_[i] = new CbcModel(model, true);
     573            threadModel_[i] = model. clone (true);
    573574            threadModel_[i]->synchronizeHandlers(1);
    574575#ifdef COIN_HAS_CLP
Note: See TracChangeset for help on using the changeset viewer.