Lines Matching refs:preallocator
3101 Mat preallocator; in DMPlexComputeInterpolatorNested() local
3107 PetscCall(MatCreate(PetscObjectComm((PetscObject)In), &preallocator)); in DMPlexComputeInterpolatorNested()
3108 PetscCall(MatSetType(preallocator, MATPREALLOCATOR)); in DMPlexComputeInterpolatorNested()
3109 PetscCall(MatSetSizes(preallocator, locRows, locCols, PETSC_DETERMINE, PETSC_DETERMINE)); in DMPlexComputeInterpolatorNested()
3110 PetscCall(MatSetUp(preallocator)); in DMPlexComputeInterpolatorNested()
3116 …PetscCall(MatSetValues(preallocator, rTotDim, cellFIndices, cTotDim, cellCIndices, vals, INSERT_VA… in DMPlexComputeInterpolatorNested()
3118 …obalSection, PETSC_FALSE, dmc, csection, cglobalSection, PETSC_FALSE, preallocator, cell, vals, IN… in DMPlexComputeInterpolatorNested()
3123 PetscCall(MatAssemblyBegin(preallocator, MAT_FINAL_ASSEMBLY)); in DMPlexComputeInterpolatorNested()
3124 PetscCall(MatAssemblyEnd(preallocator, MAT_FINAL_ASSEMBLY)); in DMPlexComputeInterpolatorNested()
3125 PetscCall(MatPreallocatorPreallocate(preallocator, PETSC_TRUE, In)); in DMPlexComputeInterpolatorNested()
3126 PetscCall(MatDestroy(&preallocator)); in DMPlexComputeInterpolatorNested()