# DMAdaptorCreate
Create a `DMAdaptor` object. Its purpose is to construct a adaptation `DMLabel` or metric Vec that can be used to modify the `DM`. 
## Synopsis
```
#include "petscdmadaptor.h" 
PetscErrorCode DMAdaptorCreate(MPI_Comm comm, DMAdaptor *adaptor)
```
Collective


## Input Parameter

- ***comm -*** The communicator for the `DMAdaptor` object



## Output Parameter

- ***adaptor   -*** The `DMAdaptor` object





## See Also
 `DMAdaptor`, `DMAdaptorDestroy()`, `DMAdaptorAdapt()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/utils/dmadapt.c.html#DMAdaptorCreate">src/snes/utils/dmadapt.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/utils/dmadapt.c)


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