:orphan: # PCGAMGSetRankReductionFactors Set a manual schedule for MPI rank reduction on coarse grids ## Synopsis ``` #include "petscpc.h" #include "petscksp.h" PetscErrorCode PCGAMGSetRankReductionFactors(PC pc, PetscInt v[], PetscInt n) ``` Collective ## Input Parameters - ***pc -*** the preconditioner context - ***v -*** array of reduction factors. 0 for first value forces a reduction to one process/device on first level in CUDA - ***n -*** number of values provided in array ## Options Database Key - ***-pc_gamg_rank_reduction_factors -*** provide the schedule ## See Also `PCGAMG`, `PCGAMGSetProcEqLim()`, `PCGAMGSetCoarseEqLim()` ## Level intermediate ## Location src/ksp/pc/impls/gamg/gamg.c ## Implementations PCGAMGSetRankReductionFactors_GAMG in src/ksp/pc/impls/gamg/gamg.c
--- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)