Skip to main content
Ctrl+K
PETSc v3.23.2-169-g2e349b43fb4d documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • DMSetDimension

DMSetDimension#

Set the topological dimension of the DM

Synopsis#

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

Collective

Input Parameters#

  • dm - The DM

  • dim - The topological dimension

See Also#

DM Basics, DM, DMGetDimension(), DMCreate()

Level#

beginner

Location#

src/dm/interface/dm.c

Examples#

src/dm/impls/swarm/tutorials/ex1.c
src/dm/impls/swarm/tutorials/ex1f90.F90
src/dm/impls/plex/tutorials/ex3f90.F90
src/snes/tutorials/ex63.c
src/dm/tutorials/swarm_ex3.c
src/ts/tutorials/ex11_sa.c
src/ts/tutorials/ex77.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex19.c
src/ksp/ksp/tutorials/ex70.c


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

On this page
  • Synopsis
  • Input Parameters
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-05-17T03:45:03-0500 (v3.23.2-169-g2e349b43fb4d).