Changeset 12851


Ignore:
Timestamp:
08/01/12 15:14:16 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: convert Enums to int otherwise compiler complains that: ' comparison between ‘enum MatrixType’ and ‘enum matrixtype’ '

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp

    r12850 r12851  
    304304void Matrix::Convert(MatrixType type){
    305305
    306         if(type==PetscMatType){
     306        if((int)type==(int)PetscMatType){
    307307                #ifdef _HAVE_PETSC_
    308308                this->pmatrix->Convert(type);
     
    311311                #endif
    312312        }
    313         else if(type==SeqMatType){
     313        else if((int)type==(int)SeqMatType){
    314314                this->smatrix->Convert(type);
    315315        }
Note: See TracChangeset for help on using the changeset viewer.