# MatCoarsenGetType
Gets the Coarsen method type and name (as a string) from the coarsen context. 
## Synopsis
```
#include "petscmatcoarsen.h" 
PetscErrorCode MatCoarsenGetType(MatCoarsen coarsen, MatCoarsenType *type)
```
Not collective


## Input Parameter

- ***coarsen -*** the coarsen context



## Output Parameter

- ***type -*** coarsener type




Not Collective


## See Also
 `MatCoarsen`, `MatCoarsenCreate()`, `MatCoarsenType`, `MatCoarsenSetType()`, `MatCoarsenRegister()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/coarsen.c.html#MatCoarsenGetType">src/mat/coarsen/coarsen.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
