:orphan: # MatPartitioningDestroy Destroys the partitioning context. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatPartitioningDestroy(MatPartitioning *part) ``` Collective ## Input Parameter - ***part -*** the partitioning context ## See Also [](ch_matrices), `Mat`, `MatPartitioning`, `MatPartitioningType`, `MatPartitioningCreate()` ## Level beginner ## Location src/mat/partition/partition.c ## Examples src/ksp/ksp/tutorials/ex64.c
src/mat/tutorials/ex11.c
src/mat/tutorials/ex15.c
src/mat/tutorials/ex15f.F90
src/mat/tutorials/ex17.c
src/mat/tutorials/ex17f.F90
## Implementations MatPartitioningDestroy_Chaco in src/mat/partition/impls/chaco/chaco.c
MatPartitioningDestroy_Hierarchical in src/mat/partition/impls/hierarchical/hierarchical.c
MatPartitioningDestroy_Party in src/mat/partition/impls/party/party.c
MatPartitioningDestroy_Parmetis in src/mat/partition/impls/pmetis/pmetis.c
MatPartitioningDestroy_PTScotch in src/mat/partition/impls/scotch/scotch.c
--- [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)