# DMPatchCreate
Creates a DMPatch object, which is a collections of DMs called patches. 
## Synopsis
```
#include "petscdmpatch.h"   
PetscErrorCode DMPatchCreate(MPI_Comm comm, DM *mesh)
```
Collective


## Input Parameter

- ***comm -*** The communicator for the DMPatch object



## Output Parameter

- ***mesh  -*** The DMPatch object



## Notes

This code is incomplete and not used by other parts of PETSc.




## See Also
 `DMPatchZoom()`


## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/patch/patchcreate.c.html#DMPatchCreate">src/dm/impls/patch/patchcreate.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/patch/patchcreate.c)


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