# DMCoarsenHierarchy_Moab
Generate a multi-level DM hierarchy by succesively coarsening a refined mesh. 
## Synopsis
```
PETSC_EXTERN PetscErrorCode DMCoarsenHierarchy_Moab(DM dm, PetscInt nlevels, DM dmc[])
```
Collective


## Input Parameter

- ***dm  -*** The DMMoab object



## Output Parameters

- ***nlevels   -*** The number of levels of refinement needed to generate the hierarchy
- ***dmc  -*** The DM objects after successive coarsening of the hierarchy





## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmbmg.cxx.html#DMCoarsenHierarchy_Moab">src/dm/impls/moab/dmmbmg.cxx</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmbmg.cxx)


[Index of all DMMOAB routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
