# PCBJacobiGetLocalBlocks
Gets the local number of blocks for the block Jacobi, `PCBJACOBI`, preconditioner. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCBJacobiGetLocalBlocks(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



## Note
Currently only a limited number of blocking configurations are supported.




## See Also
 `PCBJACOBI`, `PCSetUseAmat()`, `PCBJacobiGetTotalBlocks()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bjacobi/bjacobi.c.html#PCBJacobiGetLocalBlocks_BJacobi">PCBJacobiGetLocalBlocks_BJacobi in src/ksp/pc/impls/bjacobi/bjacobi.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/bjacobi/bjacobi.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)  
