# PCFactorSetPivotInBlocks
Determines if pivoting is done while factoring each block with `MATBAIJ` or `MATSBAIJ` matrices 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCFactorSetPivotInBlocks(PC pc, PetscBool pivot)
```
Logically Collective


## Input Parameters

- ***pc -*** the preconditioner context
- ***pivot -*** `PETSC_TRUE` or `PETSC_FALSE`



## Options Database Key

- ***-pc_factor_pivot_in_blocks <true,false> -*** Pivot inside matrix dense blocks for `MATBAIJ` and `MATSBAIJ`





## See Also
 `PCLU`, `PCCHOLESKY`, `PCILU`, `PCICC`, `PCILUSetMatOrdering()`, `PCFactorSetColumnPivot()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/factor/factimpl.c.html#PCFactorSetPivotInBlocks_Factor">PCFactorSetPivotInBlocks_Factor in src/ksp/pc/impls/factor/factimpl.c</A><BR>


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