Home
last modified time | relevance | path

Searched refs:sd_nnz (Results 1 – 1 of 1) sorted by relevance

/petsc/src/dm/impls/sliced/
H A Dsliced.c18 PetscInt *globals, *sd_nnz, *so_nnz, rstart, bs, i; in DMCreateMatrix_Sliced() local
44 PetscCall(PetscMalloc2(slice->n * bs, &sd_nnz, (!!slice->o_nnz) * slice->n * bs, &so_nnz)); in DMCreateMatrix_Sliced()
46sd_nnz[i] = (slice->d_nnz[i / bs] - 1) * (slice->ofill ? slice->ofill->i[i % bs + 1] - slice->ofil… in DMCreateMatrix_Sliced()
49 PetscCall(MatSeqAIJSetPreallocation(*J, slice->d_nz * bs, sd_nnz)); in DMCreateMatrix_Sliced()
50 PetscCall(MatMPIAIJSetPreallocation(*J, slice->d_nz * bs, sd_nnz, slice->o_nz * bs, so_nnz)); in DMCreateMatrix_Sliced()
51 PetscCall(PetscFree2(sd_nnz, so_nnz)); in DMCreateMatrix_Sliced()