# MatCoarsenSetType
Sets the type of aggregator to use 
## Synopsis
```
#include "petscmatcoarsen.h" 
PetscErrorCode MatCoarsenSetType(MatCoarsen coarser, MatCoarsenType type)
```
Collective on coarser


## Input Parameters

- ***coarser -*** the coarsen context.
- ***type -*** a known coarsening method



## Options Database Key

- ***-mat_coarsen_type  <type> -*** (for instance, misk), use -help for a list of available methods





## See Also
 `MatCoarsen`, `MatCoarsenCreate()`, `MatCoarsenApply()`, `MatCoarsenType`, `MatCoarsenGetType()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/coarsen.c.html#MatCoarsenSetType">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)  
