Ignore:
Timestamp:
09/16/11 16:35:08 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added support for petsc 3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/toolkits/petsc/patches/NewMat.cpp

    r9320 r9826  
    7878        int    nnz;
    7979
    80         #if _PETSC_VERSION_ == 3
     80        #if _PETSC_MAJOR_ >= 3
    8181        const MatType type;
    8282        #else
     
    9999        MatGetType(outmatrix,&type);
    100100       
    101         #if _PETSC_VERSION_ == 2
     101        #if _PETSC_MAJOR_ == 2
    102102        if((strcmp(type,"mpiaij")==0) || (strcmp(type,"aijmumps")==0)){
    103103                MatMPIAIJSetPreallocation(outmatrix,d_nz,NULL,o_nz,NULL);
Note: See TracChangeset for help on using the changeset viewer.