Searched refs:so_nnz (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/sliced/ |
| H A D | sliced.c | 18 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() 47 …if (so_nnz) so_nnz[i] = slice->o_nnz[i / bs] * (slice->ofill ? slice->ofill->i[i % bs + 1] - slice… 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()
|