Changeset 2969
 Timestamp:
 Apr 5, 2020 1:14:48 PM (3 months ago)
 Location:
 trunk
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/Cbc_C_Interface.cpp
r2962 r2969 192 192 double *rUB; 193 193 int rElementsSpace; 194 int*rStart;194 CoinBigIndex *rStart; 195 195 int *rIdx; 196 196 double *rCoef; … … 669 669 if (model>nCols) 670 670 { 671 int *starts = new int[model>nCols+1];671 CoinBigIndex *starts = new CoinBigIndex[model>nCols+1]; 672 672 for ( int i=0 ; (i<model>nCols+1) ; ++i ) 673 673 starts[i] = 0; … … 816 816 // allocating buffer 817 817 model>rowSpace = 8192; 818 model>rStart = ( int *)xmalloc(sizeof(int)*model>rowSpace);818 model>rStart = (CoinBigIndex *)xmalloc(sizeof(CoinBigIndex)*model>rowSpace); 819 819 model>rStart[0] = 0; 820 820 model>rLB = (double *)xmalloc(sizeof(double)*model>rowSpace); … … 839 839 { 840 840 model>rowSpace *= 2; 841 model>rStart = ( int *)xrealloc(model>rStart, sizeof(int)*model>rowSpace);841 model>rStart = (CoinBigIndex *)xrealloc(model>rStart, sizeof(CoinBigIndex)*model>rowSpace); 842 842 model>rLB = (double *)xrealloc(model>rLB, sizeof(double)*model>rowSpace); 843 843 model>rUB = (double *)xrealloc(model>rUB, sizeof(double)*model>rowSpace); 
trunk/test/gamsTest.cpp
r2900 r2969 60 60 int numrows = 1; 61 61 int nnz = 3; 62 CoinBigIndex *start = new int[numcols + 1];62 CoinBigIndex *start = new CoinBigIndex[numcols + 1]; 63 63 int *index = new int[nnz]; 64 64 double *value = new double[nnz]; … … 164 164 int numrows = 6; // wsum, xdef, fxdef, defwLo, gapplus, gapminus 165 165 int nnz = 16; 166 CoinBigIndex *start = new int[numcols + 1];166 CoinBigIndex *start = new CoinBigIndex[numcols + 1]; 167 167 int *index = new int[nnz]; 168 168 double *value = new double[nnz]; … … 358 358 int numrows = 3; // bigx, smallx, f 359 359 int nnz = 6; 360 CoinBigIndex *start = new int[numcols + 1];360 CoinBigIndex *start = new CoinBigIndex[numcols + 1]; 361 361 int *index = new int[nnz]; 362 362 double *value = new double[nnz]; … … 567 567 int numrows = 3; // bigx, smallx, f 568 568 int nnz = 6; 569 CoinBigIndex *start = new int[numcols + 1];569 CoinBigIndex *start = new CoinBigIndex[numcols + 1]; 570 570 int *index = new int[nnz]; 571 571 double *value = new double[nnz];
Note: See TracChangeset
for help on using the changeset viewer.