- Timestamp:
- 04/16/12 14:57:18 (13 years ago)
- Location:
- issm/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 7 7 config.status 8 8 configure 9 doxygen10 9 ISSM.paf 11 10 ISSM.ppf 12 11 ISSM.ppf_cache 13 12 libtool 14 list15 13 Makefile 16 14 Makefile.in
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
issm/trunk/src/c/toolkits/petsc/patches/MatPartition.cpp
r11237 r11995 15 15 16 16 #include "../../../shared/shared.h" 17 #include "../../mpi/patches/mpipatches.h" 17 18 18 19 int MatPartition(Mat* poutmatrix,Mat matrixA,double* row_partition_vector,int row_partition_vector_size , … … 47 48 d_nz=0; 48 49 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 49 53 MatCreateMPIAIJ(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,d_nz,PETSC_NULL,o_nz,PETSC_NULL,&outmatrix); 54 #endif 50 55 } 51 56 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 52 60 MatCreateMPIDense(MPI_COMM_WORLD,PETSC_DETERMINE,PETSC_DETERMINE, 0,0,PETSC_NULL,&outmatrix); 61 #endif 62 } 63 else{ 64 _error_("MatType %s not supported yet",type); 53 65 } 54 66 /*Assemble*/ … … 97 109 98 110 /*Call MatGetSubMatrix*/ 99 csize= PetscDetermineLocalSize(col_partition_vector_size);111 csize=DetermineLocalSize(col_partition_vector_size); 100 112 if(col_partition_vector_size==row_partition_vector_size){ 101 113 #if _PETSC_MAJOR_ >= 3
Note:
See TracChangeset
for help on using the changeset viewer.