Changeset 13596
- Timestamp:
- 10/10/12 22:17:11 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r13589 r13596 771 771 ./toolkits/petsc/patches/KSPFree.cpp\ 772 772 ./toolkits/petsc/patches/MatFree.cpp\ 773 ./toolkits/petsc/patches/GetOwnershipBoundariesFromRange.cpp\774 773 ./toolkits/petsc/patches/VecPartition.cpp\ 775 774 ./toolkits/petsc/patches/MatInvert.cpp\ -
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscMat.cpp
r13595 r13596 37 37 PetscMat::PetscMat(int M,int N, IssmDouble sparsity){ 38 38 39 this->matrix=NewMat(M,N,sparsity );39 this->matrix=NewMat(M,N,sparsity,IssmComm::GetComm()); 40 40 } 41 41 /*}}}*/ … … 54 54 55 55 56 this->matrix=NewMat(M,N,sparsity );56 this->matrix=NewMat(M,N,sparsity,IssmComm::GetComm()); 57 57 MatSetValues(this->matrix,M,idxm,N,idxn,serial_mat,INSERT_VALUES); 58 58 MatAssemblyBegin(this->matrix,MAT_FINAL_ASSEMBLY); … … 67 67 PetscMat::PetscMat(int M,int N, int connectivity,int numberofdofspernode){ 68 68 69 this->matrix=NewMat(M,N,connectivity,numberofdofspernode );69 this->matrix=NewMat(M,N,connectivity,numberofdofspernode,IssmComm::GetComm()); 70 70 71 71 } -
issm/trunk-jpl/src/c/toolkits/petsc/patches/NewMat.cpp
r13595 r13596 48 48 } 49 49 /*}}}*/ 50 /*NewMat(int M,int N,double sparsity ){{{*/50 /*NewMat(int M,int N,double sparsity,COMM comm){{{*/ 51 51 Mat NewMat(int M,int N,double sparsity,COMM comm){ 52 52 -
issm/trunk-jpl/src/c/toolkits/petsc/patches/petscpatches.h
r13595 r13596 24 24 int VecTranspose(Vec* tvector,Vec vector); 25 25 int VecToMPISerial(double** pgathered_vector, Vec vector,COMM comm); 26 void GetOwnershipBoundariesFromRange(int* plower_row,int* pupper_row,int range,COMM comm);27 26 void MatFree(Mat* pmat); 28 27 void ISFree(IS* pis);
Note:
See TracChangeset
for help on using the changeset viewer.