# PCHMGSetInnerPCType
Set an inner `PC` type 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCHMGSetInnerPCType(PC pc, PCType type)
```
Logically Collective on pc


## Input Parameters

- ***pc -*** the `PCHMG` context
- ***type -*** `PCHYPRE` or `PCGAMG` coarsening algorithm



## Options Database Key

- ***-hmg_inner_pc_type <hypre, gamg> -*** What method is used to coarsen matrix





## See Also
 `PCHMG`, `PCType`, `PCHMGSetReuseInterpolation()`, `PCHMGSetUseSubspaceCoarsening()`, `PCHMGSetCoarseningComponent()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hmg/hmg.c.html#PCHMGSetInnerPCType">src/ksp/pc/impls/hmg/hmg.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex4.c.html">src/ksp/ksp/tutorials/ex4.c.html</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hmg/hmg.c.html#PCHMGSetInnerPCType_HMG">PCHMGSetInnerPCType_HMG in src/ksp/pc/impls/hmg/hmg.c</A><BR>


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