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


## Input Parameter

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



## Options Database Key

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





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