:orphan: # PCHMGSetInnerPCType Set an inner `PC` type ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCHMGSetInnerPCType(PC pc, PCType type) ``` Logically Collective ## Input Parameters - ***pc -*** the `PCHMG` context - ***type -*** `PCHYPRE` or `PCGAMG` coarsening algorithm ## Options Database Key - ***-hmg_inner_pc_type -*** What method is used to coarsen matrix ## See Also `PCHMG`, `PCType`, `PCHMGSetReuseInterpolation()`, `PCHMGSetUseSubspaceCoarsening()`, `PCHMGSetCoarseningComponent()` ## Level beginner ## Location src/ksp/pc/impls/hmg/hmg.c ## Examples src/ksp/ksp/tutorials/ex4.c
## Implementations PCHMGSetInnerPCType_HMG in src/ksp/pc/impls/hmg/hmg.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/hmg/hmg.c) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)