DMSetType#
Builds a DM, for a particular DM implementation.
Synopsis#
#include "petscdm.h"
#include "petscdmlabel.h"
#include "petscds.h"
PetscErrorCode DMSetType(DM dm, DMType method)
Collective
Input Parameters#
Options Database Key#
-dm_type type - Sets the
DMtype; use -help for a list of available types
Note#
Of the DM is constructed by directly calling a function to construct a particular DM, for example, DMDACreate2d() or DMPlexCreateBoxMesh()
See Also#
DM Basics, DM, DMType, DMDA, DMPLEX, DMGetType(), DMCreate(), DMDACreate2d()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex13.c
src/snes/tutorials/ex23.c
src/ksp/ksp/tutorials/ex70.c
src/snes/tutorials/ex11.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex69.c
src/snes/tutorials/ex20.c
src/snes/tutorials/ex77.c
src/snes/tutorials/ex7.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages