PCBJacobiSetLocalBlocks — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# PCBJacobiSetLocalBlocks

Sets the local number of blocks for the block Jacobi, `PCBJACOBI`, preconditioner.

## Synopsis

    #include "petscpc.h"
    PetscErrorCode PCBJacobiSetLocalBlocks(PC pc, PetscInt blocks, const PetscInt lens[])

Not Collective

## Input Parameters

- pc - the preconditioner context

- blocks - the number of blocks

- lens - [optional] integer array containing size of each block

## Options Database Key

- -pc_bjacobi_local_blocks - Sets the number of local blocks

## Note

Currently only a limited number of blocking configurations are supported.

## See Also

KSP: Linear System Solvers, `PCBJACOBI`, `PCSetUseAmat()`, `PCBJacobiSetTotalBlocks()`

## Level

intermediate

## Location

src/ksp/pc/impls/bjacobi/bjacobi.c

## Implementations

PCBJacobiSetLocalBlocks_BJacobi() in src/ksp/pc/impls/bjacobi/bjacobi.c

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages