# MatPartitioningGetType
Gets the Partitioning method type and name (as a string) from the partitioning context. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningGetType(MatPartitioning partitioning, MatPartitioningType *type)
```
Not collective


## Input Parameter

- ***partitioning -*** the partitioning context



## Output Parameter

- ***type -*** partitioner type




Not Collective


## See Also
 `MatPartitioning`, `MatPartitioningType`, `MatPartitioningCreate()`, `MatPartitioningRegisterDestroy()`, `MatPartitioningRegisterAll()`

## Level
intermediate

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


---
[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)  
