DMSetMatType#
Sets the type of matrix created with DMCreateMatrix()
Synopsis#
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMSetMatType(DM dm, MatType ctype)
Logically Collective
Input Parameters#
Options Database Key#
-dm_mat_type ctype - the type of the matrix to create, see
MatType
See Also#
DM Basics, DM, MatType, DMDACreate1d(), DMDACreate2d(), DMDACreate3d(), DMCreateMatrix(), DMCreateMassMatrix(), DMSetMatrixPreallocateOnly(), DMGetMatType(), DMCreateGlobalVector(), DMCreateLocalVector()
Level#
intermediate
Location#
Examples#
src/dm/tutorials/ex14.c
src/dm/impls/moab/tests/ex2.cxx
src/dm/impls/stag/tests/ex11.c
src/dm/impls/stag/tests/ex5.c
src/dm/impls/stag/tests/ex8.c
src/dm/tests/ex26.c
src/dm/tests/ex30.c
src/dm/tests/ex35.c
src/dm/tests/ex9.c
src/ksp/ksp/tutorials/ex42.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages