:orphan: # MatCoarsenDestroy Destroys the coarsen context. ## Synopsis ``` #include "petscmatcoarsen.h" PetscErrorCode MatCoarsenDestroy(MatCoarsen *agg) ``` Collective ## Input Parameter - ***agg -*** the coarsen context ## See Also `MatCoarsen`, `MatCoarsenCreate()` ## Level advanced ## Location src/mat/coarsen/coarsen.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/coarsen/coarsen.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)