DMGetDimension#

Return the topological dimension of the DM

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMGetDimension(DM dm, PetscInt *dim)

Not collective

Input Parameter#

  • dm - The DM

Output Parameter#

  • dim - The topological dimension

See Also#

DMSetDimension(), DMCreate()

Level#

beginner

Location#

src/dm/interface/dm.c

Examples#

src/dm/impls/plex/tutorials/ex10.c.html
src/dm/impls/plex/tutorials/ex14.c.html
src/dm/impls/plex/tutorials/ex1.c.html
src/dm/impls/plex/tutorials/ex1f90.F90.html
src/dm/impls/plex/tutorials/ex6.c.html
src/dm/impls/plex/tutorials/ex8.c.html
src/dm/impls/swarm/tutorials/ex1.c.html
src/dm/impls/swarm/tutorials/ex1f90.F90.html
src/dm/impls/stag/tutorials/ex4.c.html
src/dm/impls/stag/tutorials/ex8.c.html
src/dm/field/tutorials/ex1.c.html


Edit on GitLab

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