# PCGAMGSetProcEqLim
Set number of equations to aim for per process on the coarse grids via processor reduction in `PCGAMG` 
## Synopsis
```
#include "petscpc.h" 
#include "petscksp.h" 
PetscErrorCode PCGAMGSetProcEqLim(PC pc, PetscInt n)
```
Logically Collective


## Input Parameters

- ***pc -*** the preconditioner context
- ***n -*** the number of equations



## Options Database Key

- ***-pc_gamg_process_eq_limit <limit> -*** set the limit



## Note
`PCGAMG` will reduce the number of MPI processes used directly on the coarse grids so that there are around <limit> equations on each process
that has degrees of freedom




## See Also
 `PCGAMG`, `PCGAMGSetCoarseEqLim()`, `PCGAMGSetRankReductionFactors()`, `PCGAMGSetRepartition()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/gamg/gamg.c.html#PCGAMGSetProcEqLim_GAMG">PCGAMGSetProcEqLim_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)  
