# MatPartitioningSetType
Sets the type of partitioner to use 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningSetType(MatPartitioning part, MatPartitioningType type)
```
Collective on part


## Input Parameters

- ***part -*** the partitioning context.
- ***type -*** a known method



## Options Database Command
```none
-mat_partitioning_type  <type>
```
```none
Use -help for a list of available methods
```
```none
(for instance, parmetis)
```




## See Also
 `MatPartitioning`, `MatPartitioningCreate()`, `MatPartitioningApply()`, `MatPartitioningType`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/partition.c.html#MatPartitioningSetType">src/mat/partition/partition.c</A>

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/partition/partition.c)


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