# PCJacobiGetFixDiagonal
Determines if the Jacobi preconditioner `PCJACOBI` checks for zero diagonal terms 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCJacobiGetFixDiagonal(PC pc, PetscBool *flg)
```
Logically Collective


## Input Parameter

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



## Output Parameter

- ***flg -*** the boolean flag



## Options Database Key

- ***-pc_jacobi_fixdiagonal <bool> -*** Fix 0 terms on diagonal by using 1





## See Also
 `PCJACOBI`, `PCJacobiSetType()`, `PCJacobiSetFixDiagonal()`

## Level
intermediate

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

## Implementations

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


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