# 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 Command
```none
-mat_coarsen_type  <type>
```
```none
Use -help for a list of available methods
```
```none
(for instance, misk)
```




## 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)  
