# PCMGGetCoarseSpaceConstructor
Returns the given coarse space construction method. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCMGGetCoarseSpaceConstructor(const char name[], PetscErrorCode (**function)(PC, PetscInt, DM, KSP, PetscInt, Mat, Mat *))
```
Not collective


## Input Parameter

- ***name     -*** name of the constructor



## Output Parameter

- ***function -*** constructor routine





## See Also
 `PCMG`, `PCMGRegisterCoarseSpaceConstructor()`, `PCRegister()`

## Level
advanced

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


---
[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)  
