Changeset 12857
- Timestamp:
- 08/01/12 15:45:12 (13 years ago)
- Location:
- issm/trunk-jpl/src/c/toolkits/petsc/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscMat.cpp
r12850 r12857 31 31 PetscMat::PetscMat(int M,int N){ 32 32 33 this->matrix=NULL; 34 if(M*N)this->matrix=NewMat(M,N); 33 this->matrix=NewMat(M,N); 35 34 } 36 35 /*}}}*/ -
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscVec.cpp
r12850 r12857 29 29 /*FUNCTION PetscVec::PetscVec(int M,bool fromlocalsize){{{*/ 30 30 PetscVec::PetscVec(int M,bool fromlocalsize){ 31 this->vector=NULL; 32 if(M) this->vector=NewVec(M,fromlocalsize); 31 32 this->vector=NewVec(M,fromlocalsize); 33 33 34 } 34 35 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.