:orphan:
# PCMGGetAdaptCoarseSpaceType
Get the type of adaptive coarse space.
## Synopsis
```
#include "petscksp.h"
PetscErrorCode PCMGGetAdaptCoarseSpaceType(PC pc, PCMGCoarseSpaceType *ctype)
```
Not Collective
## Input Parameter
- ***pc -*** the multigrid context
## Output Parameter
- ***ctype -*** the type of coarse space
## See Also
`PCMG`, `PCMGCoarseSpaceType`, `PCMGSetAdaptCoarseSpaceType()`, `PCMGSetGalerkin()`, `PCMGSetAdaptInterpolation()`
## Level
intermediate
## Location
src/ksp/pc/impls/mg/mg.c
## Implementations
PCMGGetAdaptCoarseSpaceType_MG in src/ksp/pc/impls/mg/mg.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/mg/mg.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)