Skip to main content
Ctrl+K
PETSc 3.26.0 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
  • DMRefineHierarchy

DMRefineHierarchy#

Refines a DM object, all levels at once

Synopsis#

#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
PetscErrorCode DMRefineHierarchy(DM dm, PetscInt nlevels, DM dmf[])

Collective

Input Parameters#

  • dm - the DM object

  • nlevels - the number of levels of refinement

Output Parameter#

  • dmf - the refined DM hierarchy

See Also#

DM Basics, DM, DMCoarsen(), DMCoarsenHierarchy(), DMDestroy(), DMView(), DMCreateGlobalVector(), DMCreateInterpolation()

Level#

developer

Location#

src/dm/interface/dm.c

Examples#

src/dm/impls/moab/tests/ex3.cxx
src/ksp/ksp/tutorials/ex35.cxx
src/ksp/ksp/tutorials/ex36.cxx
src/snes/tutorials/ex48.c
src/ts/tutorials/ex30.c

Implementations#

DMRefineHierarchy_DA() in src/dm/impls/da/da.c
DMRefineHierarchy_Moab() in src/dm/impls/moab/dmmbmg.cxx
DMRefineHierarchy_Plex() in src/dm/impls/plex/plexrefine.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-2026, 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 2026-09-28T23:34:57-0500 (v3.26.0).