Changeset 1451 for trunk/Clp


Ignore:
Timestamp:
Oct 26, 2009 7:49:53 AM (10 years ago)
Author:
forrest
Message:

fix for segfault in guts of copy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpModel.cpp

    r1424 r1451  
    778778      integerType_ = CoinCopyOfArray(rhs.integerType_,numberColumns_);
    779779      if (rhs.rowActivity_) {
    780         rowActivity_=new double[numberRows_];
    781         columnActivity_=new double[numberColumns_];
    782         dual_=new double[numberRows_];
    783         reducedCost_=new double[numberColumns_];
    784         ClpDisjointCopyN ( rhs.rowActivity_, numberRows_ ,
    785                            rowActivity_);
    786         ClpDisjointCopyN ( rhs.columnActivity_, numberColumns_ ,
    787                            columnActivity_);
    788         ClpDisjointCopyN ( rhs.dual_, numberRows_ ,
    789                            dual_);
    790         ClpDisjointCopyN ( rhs.reducedCost_, numberColumns_ ,
    791                            reducedCost_);
     780        rowActivity_= ClpCopyOfArray(rhs.rowActivity_, numberRows_);
     781        columnActivity_= ClpCopyOfArray(rhs.columnActivity_,numberColumns_);
     782        dual_= ClpCopyOfArray(rhs.dual_, numberRows_);
     783        reducedCost_= ClpCopyOfArray(rhs.reducedCost_, numberColumns_);
    792784      } else {
    793785        rowActivity_=NULL;
Note: See TracChangeset for help on using the changeset viewer.