# MatPartitioningView
Prints the partitioning data structure. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningView(MatPartitioning part, PetscViewer viewer)
```
Collective


## Input Parameters

- ***part -*** the partitioning context
- ***viewer -*** optional visualization context





## Note
The available visualization contexts include

- ***`PETSC_VIEWER_STDOUT_SELF` -*** standard output (default)
- ***`PETSC_VIEWER_STDOUT_WORLD` -*** synchronized standard
output where only the first processor opens
the file.  All other processors send their
data to the first processor to print.


The user can open alternative visualization contexts with

- ***`PetscViewerASCIIOpen()` -*** output to a specified file



## See Also
 `MatPartitioning`, `PetscViewer`, `PetscViewerASCIIOpen()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/chaco/chaco.c.html#MatPartitioningView_Chaco">MatPartitioningView_Chaco in src/mat/partition/impls/chaco/chaco.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/hierarchical/hierarchical.c.html#MatPartitioningView_Hierarchical">MatPartitioningView_Hierarchical in src/mat/partition/impls/hierarchical/hierarchical.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/party/party.c.html#MatPartitioningView_Party">MatPartitioningView_Party in src/mat/partition/impls/party/party.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/pmetis/pmetis.c.html#MatPartitioningView_Parmetis">MatPartitioningView_Parmetis in src/mat/partition/impls/pmetis/pmetis.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/scotch/scotch.c.html#MatPartitioningView_PTScotch">MatPartitioningView_PTScotch in src/mat/partition/impls/scotch/scotch.c</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)  
