Changeset 19178
- Timestamp:
- 03/04/15 16:23:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscMat.cpp
r19170 r19178 55 55 */ 56 56 #ifdef _HAVE_PETSC_MPI_ 57 int nnz[M];58 59 57 int* nnz = new int[M]; 58 for(int i = 0; i < M; i++) 59 nnz[i] = o_nnz[i] + d_nnz[i]; 60 60 61 61 PetscErrorCode ierr = MatSeqAIJSetPreallocation(this->matrix,0,nnz); 62 delete[] nnz; 62 63 #else 63 64 PetscErrorCode ierr = MatMPIAIJSetPreallocation(this->matrix,0,d_nnz,0,o_nnz);
Note:
See TracChangeset
for help on using the changeset viewer.