PETSc version 3.17.4
DMSetMatrixPreallocateSkip
When DMCreateMatrix() is called the matrix sizes and ISLocalToGlobalMapping will be properly set, but the entries will not be preallocated. This is most useful to reduce initialization costs when MatSetPreallocationCOO() and MatSetValuesCOO() will be used.
Synopsis
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMSetMatrixPreallocateSkip(DM dm, PetscBool skip)
Logically Collective on dm
Input Parameters
See Also
DMCreateMatrix(), DMSetMatrixStructureOnly()
Level
developer
Location
src/dm/interface/dm.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages