:orphan: # MatCoarsenSetType Sets the type of aggregator to use ## Synopsis ``` #include "petscmatcoarsen.h" PetscErrorCode MatCoarsenSetType(MatCoarsen coarser, MatCoarsenType type) ``` Collective ## Input Parameters - ***coarser -*** the coarsen context. - ***type -*** a known coarsening method ## Options Database Key - ***-mat_coarsen_type -*** (for instance, misk), use -help for a list of available methods ## See Also `MatCoarsen`, `MatCoarsenCreate()`, `MatCoarsenApply()`, `MatCoarsenType`, `MatCoarsenGetType()` ## Level advanced ## Location src/mat/coarsen/coarsen.c --- [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)