:orphan: # DMMoabGenerateHierarchy Generate a multi-level uniform refinement hierarchy by succesively refining a coarse mesh, already defined in the `DM` object provided by the user. ## Synopsis ``` PetscErrorCode DMMoabGenerateHierarchy(DM dm, PetscInt nlevels, PetscInt *ldegrees) ``` Collective ## Input Parameter - ***dmb -*** The `DMMOAB` object ## Output Parameters - ***nlevels -*** The number of levels of refinement needed to generate the hierarchy - ***ldegrees -*** The degree of refinement at each level in the hierarchy ## Level beginner ## Location src/dm/impls/moab/dmmbmg.cxx ## Examples src/ksp/ksp/tutorials/ex35.cxx
src/ksp/ksp/tutorials/ex36.cxx
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)