Ignore:
Timestamp:
Aug 9, 2007 3:51:21 PM (13 years ago)
Author:
jpfasano
Message:

Modified to remove MS Compiler messages:

ClpDynamicMatrix?.cpp
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(182) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(185) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(192) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(199) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(206) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(208) : warning C4305: '=' : truncation from 'double' to 'float'
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(213) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(215) : warning C4305: '=' : truncation from 'double' to 'float'
ClpDynamicExampleMatrix?.cpp
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(126) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(129) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(136) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(148) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(189) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(209) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(341) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(362) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(650) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data

Attempted to follow John's instructions/guidance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BSP/trunk/Clp/src/ClpDynamicExampleMatrix.cpp

    r754 r1072  
    9494  // and size correctly
    9595  row_ = new int [maximumElements_];
    96   element_ = new float [maximumElements_];
     96  element_ = new double [maximumElements_];
    9797  startColumn_ = new CoinBigIndex [maximumGubColumns_+1];
    9898  // say no columns yet
    9999  numberGubColumns_=0;
    100100  startColumn_[0]=0;
    101   cost_ = new float[maximumGubColumns_];
     101  cost_ = new double[maximumGubColumns_];
    102102  dynamicStatus_ = new unsigned char [maximumGubColumns_];
    103103  memset(dynamicStatus_,0,maximumGubColumns_);
    104104  id_ = new int[maximumGubColumns_];
    105105  if (columnLower)
    106     columnLower_ = new float[maximumGubColumns_];
     106    columnLower_ = new double[maximumGubColumns_];
    107107  else
    108108    columnLower_ = NULL;
    109109  if (columnUpper)
    110     columnUpper_ = new float[maximumGubColumns_];
     110    columnUpper_ = new double[maximumGubColumns_];
    111111  else
    112112    columnUpper_=NULL;
     
    122122  CoinBigIndex numberElements = startColumnGen_[numberColumns_];
    123123  rowGen_ = ClpCopyOfArray(row,numberElements);
    124   elementGen_ = new float[numberElements];
     124  elementGen_ = new double[numberElements];
    125125  for (i=0;i<numberElements;i++)
    126126    elementGen_[i]=element[i];
    127   costGen_ = new float[numberColumns_];
     127  costGen_ = new double[numberColumns_];
    128128  for (i=0;i<numberColumns_;i++) {
    129129    costGen_[i]=cost[i];
     
    132132  }
    133133  if (columnLower) {
    134     columnLowerGen_ = new float[numberColumns_];
     134    columnLowerGen_ = new double[numberColumns_];
    135135    for (i=0;i<numberColumns_;i++) {
    136136      columnLowerGen_[i]=columnLower[i];
     
    144144  }
    145145  if (columnUpper) {
    146     columnUpperGen_ = new float[numberColumns_];
     146    columnUpperGen_ = new double[numberColumns_];
    147147    for (i=0;i<numberColumns_;i++)
    148148      columnUpperGen_[i]=columnUpper[i];
     
    224224                          const double * lower, const double * upper,
    225225                          int * startColumn, int * row,
    226                           float * element, float * cost,
    227                           float * columnLower, float * columnUpper,
     226                          double * element, double * cost,
     227                          double * columnLower, double * columnUpper,
    228228                          const unsigned char * status,
    229229                          const unsigned char * dynamicStatus,
     
    253253  // and size correctly
    254254  row_ = new int [maximumElements_];
    255   element_ = new float [maximumElements_];
     255  element_ = new double [maximumElements_];
    256256  startColumn_ = new CoinBigIndex [maximumGubColumns_+1];
    257257  // say no columns yet
    258258  numberGubColumns_=0;
    259259  startColumn_[0]=0;
    260   cost_ = new float[maximumGubColumns_];
     260  cost_ = new double[maximumGubColumns_];
    261261  dynamicStatus_ = new unsigned char [maximumGubColumns_];
    262262  memset(dynamicStatus_,0,maximumGubColumns_);
    263263  id_ = new int[maximumGubColumns_];
    264264  if (columnLower)
    265     columnLower_ = new float[maximumGubColumns_];
     265    columnLower_ = new double[maximumGubColumns_];
    266266  else
    267267    columnLower_ = NULL;
    268268  if (columnUpper)
    269     columnUpper_ = new float[maximumGubColumns_];
     269    columnUpper_ = new double[maximumGubColumns_];
    270270  else
    271271    columnUpper_=NULL;
Note: See TracChangeset for help on using the changeset viewer.