# PCBJacobiGetTotalBlocks
Gets the global number of blocks for the block Jacobi, `PCBJACOBI`, preconditioner. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCBJacobiGetTotalBlocks(PC pc, PetscInt *blocks, const PetscInt *lens[])
```
Not Collective


## Input Parameter

- ***pc -*** the preconditioner context



## Output parameters

- ***blocks -*** the number of blocks
- ***lens -*** integer array containing the size of each block





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

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bjacobi/bjacobi.c.html#PCBJacobiGetTotalBlocks_BJacobi">PCBJacobiGetTotalBlocks_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)  
