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 - Sets the DM type; 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#

src/dm/interface/dm.c

Examples#

src/ts/tutorials/ex18.c
src/ts/tutorials/ex45.c
src/ts/tutorials/ex46.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex47.c
src/ts/tutorials/ex52.c
src/ts/tutorials/ex76.c
src/ts/tutorials/ex53.c
src/ts/tutorials/ex48.c
src/ts/tutorials/ex11.c


Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages