:orphan:
# PCSetUpOnBlocks
Sets up the preconditioner for each block in the block Jacobi, block Gauss-Seidel, and overlapping Schwarz methods.
## Synopsis
```
#include "petscksp.h"
PetscErrorCode PCSetUpOnBlocks(PC pc)
```
Collective
## Input Parameter
- ***pc -*** the preconditioner context
## Note
For nested preconditioners such as `PCBJACOBI` `PCSetUp()` is not called on each sub-`KSP` when `PCSetUp()` is
called on the outer `PC`, this routine ensures it is called.
## See Also
`PC`, `PCSetUp()`, `PCCreate()`, `PCApply()`, `PCDestroy()`, `PCSetUp()`
## Level
developer
## Location
src/ksp/pc/interface/precon.c
## Implementations
PCSetUpOnBlocks_ASM in src/ksp/pc/impls/asm/asm.c
PCSetUpOnBlocks_GASM in src/ksp/pc/impls/gasm/gasm.c
PCSetUpOnBlocks_PATCH in src/ksp/pc/impls/patch/pcpatch.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/interface/precon.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)