# PCGAMGSetUseParallelCoarseGridSolve
allow a parallel coarse grid solver 
## Synopsis
```
#include "petscpc.h" 
#include "petscksp.h" 
PetscErrorCode PCGAMGSetUseParallelCoarseGridSolve(PC pc, PetscBool flg)
```
Collective


## Input Parameters

- ***pc -*** the preconditioner context
- ***flg -*** `PETSC_TRUE` to not force coarse grid onto one processor



## Options Database Key

- ***-pc_gamg_use_parallel_coarse_grid_solver -*** use a parallel coarse grid direct solver





## See Also
 `PCGAMG`, `PCGAMGSetCoarseGridLayoutType()`, `PCGAMGSetCpuPinCoarseGrids()`

## Level
intermediate

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

## Implementations

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


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/gamg/gamg.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)  
