# 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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/mg/mg.c.html#PCMGGetAdaptCoarseSpaceType">src/ksp/pc/impls/mg/mg.c</A>

## Implementations

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


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