Changeset 12729


Ignore:
Timestamp:
07/24/12 16:38:58 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added support for PETSC 3.3

Location:
issm/trunk-jpl/src/c/toolkits/petsc/patches
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/MatPartition.cpp

    r12493 r12729  
    4848                        d_nz=0;
    4949                        o_nz=0;
    50                         #ifdef _HAVE_PETSCDEV_
     50                        #if _PETSC_MAJOR_ == 3 && _PETSC_MINOR_ > 2
    5151                        MatCreateAIJ(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,d_nz,PETSC_NULL,o_nz,PETSC_NULL,&outmatrix);
    5252                        #else
     
    5555                }
    5656                else if (strcmp(type,"mpidense")==0){
    57                         #ifdef _HAVE_PETSCDEV_
     57                        #if _PETSC_MAJOR_ == 3 && _PETSC_MINOR_ > 2
    5858                        MatCreateDense(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,PETSC_NULL,&outmatrix);
    5959                        #else
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/NewMat.cpp

    r12365 r12729  
    3939        o_nz=(int)((double)nnz/(double)M/2.0); //number of non zeros per row/2
    4040
    41         #ifdef _HAVE_PETSCDEV_
     41        #if _PETSC_MAJOR_ == 3 && _PETSC_MINOR_ > 2
    4242        MatCreateAIJ(MPI_COMM_WORLD,m,n,M,N,d_nz,NULL,o_nz,NULL,&outmatrix);
    4343        #else
     
    6767        o_nz=(int)((double)nnz/(double)M/2.0); //number of non zeros per row/2
    6868
    69         #ifdef _HAVE_PETSCDEV_
     69        #if _PETSC_MAJOR_ == 3 && _PETSC_MINOR_ > 2
    7070        if(sparsity==1){
    7171                MatCreateDense(MPI_COMM_WORLD,m,n,M,N,NULL,&outmatrix);
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscOptionsInsertMultipleString.cpp

    r12494 r12729  
    9090        }
    9191
    92 #ifdef _HAVE_PETSCDEV_
     92#if _PETSC_MAJOR_ == 3 && _PETSC_MINOR_ > 2
    9393        PetscTokenDestroy(&token);
    9494#else
Note: See TracChangeset for help on using the changeset viewer.