# 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 - set the limit

## Note#

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

PCGAMG, PCGAMGSetCoarseEqLim(), PCGAMGSetRankReductionFactors(), PCGAMGSetRepartition()

intermediate

## Location#

src/ksp/pc/impls/gamg/gamg.c

Edit on GitLab