Skip to main content
Ctrl+K
PETSc v3.23.2-211-g226f8a8a5081 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
  • DMSetUp

DMSetUp#

sets up the data structures inside a DM object

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMSetUp(DM dm)

Collective

Input Parameter#

  • dm - the DM object to setup

Note#

This is usually called after various parameter setting operations and DMSetFromOptions() are called on the DM

See Also#

DM Basics, DM, DMCreate(), DMSetType(), DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix()

Level#

intermediate

Location#

src/dm/interface/dm.c

Examples#

src/ksp/ksp/tutorials/ex36.cxx
src/ksp/ksp/tutorials/ex32.c
src/ksp/ksp/tutorials/ex73.c
src/ksp/ksp/tutorials/ex42.c
src/ksp/ksp/tutorials/ex22f.F90
src/ksp/ksp/tutorials/ex65.c
src/ksp/ksp/tutorials/ex45.c
src/ksp/ksp/tutorials/ex46.c
src/ksp/ksp/tutorials/ex69.c
src/ksp/ksp/tutorials/ex35.cxx

Implementations#

DMSetUp_Composite() in src/dm/impls/composite/pack.c
DMSetUp_DA() in src/dm/impls/da/dareg.c
DMSetUp_pforest() in src/dm/impls/forest/p4est/pforest.h
DMSetUp_Moab() in src/dm/impls/moab/dmmoab.cxx
DMSetUp_Network() in src/dm/impls/network/network.c
DMSetUp_Patch() in src/dm/impls/patch/patch.c
DMSetUp_Plex() in src/dm/impls/plex/plex.c


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

On this page
  • Synopsis
  • Input Parameter
  • Note
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
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-20T11:24:31-0500 (v3.23.2-211-g226f8a8a5081).