:orphan:
# DMMoabCreateSubmesh
Creates a sub-DM object with a set that contains all vertices/elements of the parent in addition to providing support for dynamic mesh modifications. This is useful for AMR calculations to create a DM object on a refined level. 
## Synopsis
```
#include "petscdmmoab.h"   
PetscErrorCode DMMoabCreateSubmesh(DM dm, DM *newdm)
```
Collective


## Input Parameters

- ***dm -*** The DM object



## Output Parameter

- ***newdm  -*** The sub DM object with updated set information





## See Also
 `DMCreate()`, `DMMoabCreateVertices()`, `DMMoabCreateElement()`

## Level
advanced

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/moab/dmmoab.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)  
