Lines Matching refs:nnz
14 PetscInt *nnz = 0, *onz = 0; in DMCreateMatrix_Moab() local
29 PetscCall(PetscCalloc2(nlsiz, &nnz, nlsiz, &onz)); in DMCreateMatrix_Moab()
32 …PetscCall(DMMoab_Compute_NNZ_From_Connectivity(dm, &innz, nnz, &ionz, onz, tmp ? PETSC_TRUE : PETS… in DMCreateMatrix_Moab()
46 PetscCall(MatSeqAIJSetPreallocation(A, innz, nnz)); in DMCreateMatrix_Moab()
47 PetscCall(MatMPIAIJSetPreallocation(A, innz, nnz, ionz, onz)); in DMCreateMatrix_Moab()
48 PetscCall(MatSeqBAIJSetPreallocation(A, dmmoab->bs, innz, nnz)); in DMCreateMatrix_Moab()
49 PetscCall(MatMPIBAIJSetPreallocation(A, dmmoab->bs, innz, nnz, ionz, onz)); in DMCreateMatrix_Moab()
52 PetscCall(PetscFree2(nnz, onz)); in DMCreateMatrix_Moab()
63 …Code DMMoab_Compute_NNZ_From_Connectivity(DM dm, PetscInt *innz, PetscInt *nnz, PetscInt *ionz, Pe… in DMMoab_Compute_NNZ_From_Connectivity() argument
120 …nnz[ivtx] = n_nnz; /* leave out self to avoid repeats -> node shared by multiple elements… in DMMoab_Compute_NNZ_From_Connectivity()
125 …nnz[f * nloc + ivtx] = n_nnz; /* leave out self to avoid repeats -> node shared by multip… in DMMoab_Compute_NNZ_From_Connectivity()
130 …nnz[nfields * ivtx + f] = n_nnz; /* leave out self to avoid repeats -> node shared by mul… in DMMoab_Compute_NNZ_From_Connectivity()
137 for (i = 0; i < nlsiz; i++) nnz[i] += 1; /* self count the node */ in DMMoab_Compute_NNZ_From_Connectivity()
146 if (isinterlaced) nnz[ivtx * nfields + ibs] *= inbsize; in DMMoab_Compute_NNZ_From_Connectivity()
147 else nnz[ibs * nloc + ivtx] *= inbsize; in DMMoab_Compute_NNZ_From_Connectivity()
160 nnz[ivtx] = (nnz[ivtx] > dmmoab->nloc ? dmmoab->nloc : nnz[ivtx]); in DMMoab_Compute_NNZ_From_Connectivity()
169 if (innz && nnz[i] > *innz) *innz = nnz[i]; in DMMoab_Compute_NNZ_From_Connectivity()