:orphan:
# 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





## See Also
 [](ch_matrices), `Mat`, `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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
