Lines Matching refs:nnz
169 PetscInt innz, *nnz, ionz, *onz; in DMCreateInterpolation_Moab() local
192 PetscCall(PetscCalloc2(nlsizc, &nnz, nlsizc, &onz)); in DMCreateInterpolation_Moab()
229 … else nnz[ldof]++; /* else local vertex */ in DMCreateInterpolation_Moab()
235 for (int i = 0; i < nlsizc; i++) nnz[i] += 1; /* self count the node */ in DMCreateInterpolation_Moab()
238 innz = nnz[0]; in DMCreateInterpolation_Moab()
241 nnz[tc] = std::min(nlsizp, nnz[tc]); in DMCreateInterpolation_Moab()
244 PetscCall(PetscInfo(NULL, " %d: NNZ = %d, ONZ = %d\n", tc, nnz[tc], onz[tc])); in DMCreateInterpolation_Moab()
246 innz = (innz < nnz[tc] ? nnz[tc] : innz); in DMCreateInterpolation_Moab()
256 PetscCall(MatSeqAIJSetPreallocation(*interpl, innz, nnz)); in DMCreateInterpolation_Moab()
257 PetscCall(MatMPIAIJSetPreallocation(*interpl, innz, nnz, ionz, onz)); in DMCreateInterpolation_Moab()
260 PetscCall(PetscFree2(nnz, onz)); in DMCreateInterpolation_Moab()