# PetscPartitionerCreate
Creates an empty PetscPartitioner object. The type can then be set with PetscPartitionerSetType(). 
## Synopsis
```
#include "petscpartitioner.h" 
PetscErrorCode PetscPartitionerCreate(MPI_Comm comm, PetscPartitioner *part)
```
Collective


## Input Parameter

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



## Output Parameter

- ***part -*** The PetscPartitioner object





## See Also
 `PetscPartitionerSetType()`, `PetscPartitionerDestroy()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/interface/partitioner.c.html#PetscPartitionerCreate">src/dm/partitioner/interface/partitioner.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/chaco/partchaco.c.html#PetscPartitionerCreate_Chaco">PetscPartitionerCreate_Chaco in src/dm/partitioner/impls/chaco/partchaco.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/gather/partgather.c.html#PetscPartitionerCreate_Gather">PetscPartitionerCreate_Gather in src/dm/partitioner/impls/gather/partgather.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/matpart/partmatpart.c.html#PetscPartitionerCreate_MatPartitioning">PetscPartitionerCreate_MatPartitioning in src/dm/partitioner/impls/matpart/partmatpart.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/parmetis/partparmetis.c.html#PetscPartitionerCreate_ParMetis">PetscPartitionerCreate_ParMetis in src/dm/partitioner/impls/parmetis/partparmetis.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/ptscotch/partptscotch.c.html#PetscPartitionerCreate_PTScotch">PetscPartitionerCreate_PTScotch in src/dm/partitioner/impls/ptscotch/partptscotch.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/shell/partshell.c.html#PetscPartitionerCreate_Shell">PetscPartitionerCreate_Shell in src/dm/partitioner/impls/shell/partshell.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/partitioner/impls/simple/partsimple.c.html#PetscPartitionerCreate_Simple">PetscPartitionerCreate_Simple in src/dm/partitioner/impls/simple/partsimple.c</A><BR>


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


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