Lines Matching refs:preallocator
219 Mat A, *sA_IG, *sGf, preallocator; in PCMGGDSWCreateCoarseSpace_Private() local
259 PetscCall(MatCreate(PetscObjectComm((PetscObject)A), &preallocator)); in PCMGGDSWCreateCoarseSpace_Private()
260 PetscCall(MatSetSizes(preallocator, n, PETSC_DECIDE, PETSC_DECIDE, NG)); in PCMGGDSWCreateCoarseSpace_Private()
261 PetscCall(MatSetType(preallocator, MATPREALLOCATOR)); in PCMGGDSWCreateCoarseSpace_Private()
262 PetscCall(MatSetUp(preallocator)); in PCMGGDSWCreateCoarseSpace_Private()
273 PetscCall(MatSetValues(preallocator, nri, ri, ncg, cidx + c, NULL, INSERT_VALUES)); in PCMGGDSWCreateCoarseSpace_Private()
274 PetscCall(MatSetValues(preallocator, nrg, rg, ncg, cidx + c, NULL, INSERT_VALUES)); in PCMGGDSWCreateCoarseSpace_Private()
278 PetscCall(MatAssemblyBegin(preallocator, MAT_FINAL_ASSEMBLY)); in PCMGGDSWCreateCoarseSpace_Private()
279 PetscCall(MatAssemblyEnd(preallocator, MAT_FINAL_ASSEMBLY)); in PCMGGDSWCreateCoarseSpace_Private()
298 PetscCall(MatPreallocatorPreallocate(preallocator, PETSC_FALSE, *cspace)); in PCMGGDSWCreateCoarseSpace_Private()
299 PetscCall(MatDestroy(&preallocator)); in PCMGGDSWCreateCoarseSpace_Private()