Ignore:
Timestamp:
May 15, 2013 4:58:19 AM (6 years ago)
Author:
forrest
Message:

llow mor adding columns without elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.15/Clp/src/ClpModel.cpp

    r1941 r1957  
    18031803#endif
    18041804          if (rowStarts) {
    1805                // Make sure matrix has correct number of columns
    1806                matrix_->getPackedMatrix()->reserve(numberColumns_, 0, true);
     1805               // Make sure matrix has correct number of columns
     1806               matrix_->getPackedMatrix()->reserve(numberColumns_, 0, true);
    18071807               matrix_->appendMatrix(number, 0, rowStarts, columns, elements);
    18081808          }
     
    22862286          }
    22872287#endif
    2288           if (elements)
    2289             matrix_->appendMatrix(number, 1, columnStarts, rows, elements);
     2288          // Do even if elements NULL (to resize)
     2289          matrix_->appendMatrix(number, 1, columnStarts, rows, elements);
    22902290     }
    22912291}
Note: See TracChangeset for help on using the changeset viewer.