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#

DM Basics, DM, DMSetDimension(), DMCreate()

Level#

beginner

Location#

src/dm/interface/dm.c

Examples#

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


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