# DMPlexGetPartitioner
Get the mesh partitioner 
## Synopsis
```
#include "petscdmplex.h"   
PetscErrorCode DMPlexGetPartitioner(DM dm, PetscPartitioner *part)
```
Not collective


## Input Parameter

- ***dm -*** The `DM`



## Output Parameter

- ***part -*** The `PetscPartitioner`





## Note
This gets a borrowed reference, so the user should not destroy this `PetscPartitioner`.


## See Also
 [](chapter_unstructured), `DM`, `DMPLEX`, `PetscPartitioner`, `PetscSection`, `DMPlexDistribute()`, `DMPlexSetPartitioner()`, `PetscPartitionerDMPlexPartition()`, `PetscPartitionerCreate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/plex/plexpartition.c.html#DMPlexGetPartitioner">src/dm/impls/plex/plexpartition.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex56.c.html">src/snes/tutorials/ex56.c.html</A><BR>


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


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