:orphan: # DMPlexSetPartitioner Set the mesh partitioner ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexSetPartitioner(DM dm, PetscPartitioner part) ``` logically Collective ## Input Parameters - ***dm -*** The `DM` - ***part -*** The partitioner ## Note Any existing `PetscPartitioner` will be destroyed. ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `PetscPartitioner`,`DMPlexDistribute()`, `DMPlexGetPartitioner()`, `PetscPartitionerCreate()` ## Level developer ## Location src/dm/impls/plex/plexpartition.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)