# DMRefineHierarchy_Moab
Generate a multi-level DM hierarchy by succesively refining a coarse mesh. 
## Synopsis
```
PETSC_EXTERN PetscErrorCode DMRefineHierarchy_Moab(DM dm, PetscInt nlevels, DM dmf[])
```
Collective


## Input Parameter

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



## Output Parameters

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





## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/moab/dmmbmg.cxx.html#DMRefineHierarchy_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)  
