Skip to main content
Ctrl+K
PETSc v3.23.2-216-g4bf22137d19f 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
  • DMCoarsen

DMCoarsen#

Coarsens a DM object using a standard, non-adaptive coarsening of the underlying mesh

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMCoarsen(DM dm, MPI_Comm comm, DM *dmc)

Collective

Input Parameters#

  • dm - the DM object

  • comm - the communicator to contain the new DM object (or MPI_COMM_NULL)

Output Parameter#

  • dmc - the coarsened DM

See Also#

DM Basics, DM, DMRefine(), DMDestroy(), DMView(), DMCreateGlobalVector(), DMCreateInterpolation(), DMCreateDomainDecomposition(), DMCoarsenHookAdd(), DMCoarsenHookRemove()

Level#

developer

Location#

src/dm/interface/dm.c

Examples#

src/ksp/ksp/tutorials/ex65.c
src/dm/impls/stag/tutorials/ex4.c

Implementations#

DMCoarsen_Composite() in src/dm/impls/composite/pack.c
DMCoarsen_DA() in src/dm/impls/da/da.c
DMCoarsen_Forest() in src/dm/impls/forest/forest.c
DMCoarsen_Moab() in src/dm/impls/moab/dmmbmg.cxx
DMCoarsen_Plex() in src/dm/impls/plex/plexcoarsen.c
DMCoarsen_Redundant() in src/dm/impls/redundant/dmredundant.c
DMCoarsen_Stag() in src/dm/impls/stag/stag.c
DMCoarsen_SNESVI() in src/snes/impls/vi/rs/virs.c


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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameter
  • 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-22T08:31:10-0500 (v3.23.2-216-g4bf22137d19f).