Changeset 11910


Ignore:
Timestamp:
04/04/12 14:07:11 (13 years ago)
Author:
habbalf
Message:

Added support for petsc-dev

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

Legend:

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

    r11695 r11910  
    4848                        d_nz=0;
    4949                        o_nz=0;
     50                        #ifdef _HAVE_PETSCDEV_
     51                        MatCreateAIJ(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,d_nz,PETSC_NULL,o_nz,PETSC_NULL,&outmatrix);
     52                        #else
    5053                        MatCreateMPIAIJ(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,d_nz,PETSC_NULL,o_nz,PETSC_NULL,&outmatrix);
     54                        #endif
    5155                }
    5256                else if (strcmp(type,"mpidense")==0){
     57                        #ifdef _HAVE_PETSCDEV_
     58                        MatCreateDense(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,PETSC_NULL,&outmatrix);
     59                        #else
    5360                        MatCreateMPIDense(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,PETSC_NULL,&outmatrix);
     61                        #endif
    5462                }
    5563                /*Assemble*/
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/NewMat.cpp

    r11695 r11910  
    3939        o_nz=(int)((double)nnz/(double)M/2.0); //number of non zeros per row/2
    4040
     41        #ifdef _HAVE_PETSCDEV_
     42        MatCreateAIJ(MPI_COMM_WORLD,m,n,M,N,d_nz,NULL,o_nz,NULL,&outmatrix);
     43        #else
    4144        MatCreateMPIAIJ(MPI_COMM_WORLD,m,n,M,N,d_nz,NULL,o_nz,NULL,&outmatrix);
     45        #endif
    4246
    4347        return outmatrix;
     
    6367        o_nz=(int)((double)nnz/(double)M/2.0); //number of non zeros per row/2
    6468
     69        #ifdef _HAVE_PETSCDEV_
     70        MatCreateAIJ(MPI_COMM_WORLD,m,n,M,N,d_nz,NULL,o_nz,NULL,&outmatrix);
     71        #else
    6572        MatCreateMPIAIJ(MPI_COMM_WORLD,m,n,M,N,d_nz,NULL,o_nz,NULL,&outmatrix);
     73        #endif
    6674
    6775        return outmatrix;
  • TabularUnified issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscOptionsInsertMultipleString.cpp

    r9826 r11910  
    9090        }
    9191
     92#ifdef _HAVE_PETSCDEV_
     93        PetscTokenDestroy(&token);
     94#else
    9295        PetscTokenDestroy(token);
     96#endif
    9397}
Note: See TracChangeset for help on using the changeset viewer.