:orphan:
# PCFactorReorderForNonzeroDiagonal
reorders rows/columns of matrix to remove zeros from diagonal 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCFactorReorderForNonzeroDiagonal(PC pc, PetscReal rtol)
```
Logically Collective


## Input Parameters

- ***pc -*** the preconditioner context
- ***tol -*** diagonal entries smaller than this in absolute value are considered zero



## Options Database Key

- ***-pc_factor_nonzeros_along_diagonal <tol> -*** perform the reordering with the given tolerance





## See Also
  `PCILU`, `PCICC`, `PCFactorSetFill()`, `PCFactorSetShiftNonzero()`, `PCFactorSetZeroPivot()`, `MatReorderForNonzeroDiagonal()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/factor/ilu/ilu.c.html#PCFactorReorderForNonzeroDiagonal_ILU">PCFactorReorderForNonzeroDiagonal_ILU in src/ksp/pc/impls/factor/ilu/ilu.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/factor/lu/lu.c.html#PCFactorReorderForNonzeroDiagonal_LU">PCFactorReorderForNonzeroDiagonal_LU in src/ksp/pc/impls/factor/lu/lu.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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
