#include "petscdm.h" #include "petscdmlabel.h" #include "petscds.h" PetscErrorCode DMSetMatrixPreallocateOnly(DM dm, PetscBool only)Logically Collective on dm
| dm | - the DM | |
| only | - PETSC_TRUE if only want preallocation |
| -dm_preallocate_only | - Only preallocate the matrix for DMCreateMatrix(), but do not fill it with zeros |