# MatCoarsenSetFromOptions
Sets various coarsen options from the options database. 
## Synopsis
```
#include "petscmatcoarsen.h" 
PetscErrorCode MatCoarsenSetFromOptions(MatCoarsen coarser)
```
Collective on coarser


## Input Parameter

- ***coarser -*** the coarsen context.



## Options Database Command
```none
-mat_coarsen_type  <type>
```
```none
Use -help for a list of available methods
```
```none
(for instance, mis)
```




## Note
Set the `MatCoarsenType` to `MATCOARSENMISK` if has not been set previously


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

## Level
advanced

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/coarsen/impls/misk/misk.c.html#MatCoarsenSetFromOptions_MISK">MatCoarsenSetFromOptions_MISK in src/mat/coarsen/impls/misk/misk.c</A><BR>


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