# PCFactorGetAllowDiagonalFill
Determines if all diagonal matrix entries are treated as level 0 fill even if there is no non-zero location. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCFactorGetAllowDiagonalFill(PC pc, PetscBool *flg)
```
Logically Collective on pc


## Input Parameter

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



## Output Parameter

- ***flg -*** `PETSC_TRUE` to turn on, `PETSC_FALSE` to turn off



## Note
Does not apply with 0 fill.




## See Also
  `PCILU`, `PCICC`, `PCFactorSetAllowDiagonalFill()`

## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/factor/factimpl.c.html#PCFactorGetAllowDiagonalFill_Factor">PCFactorGetAllowDiagonalFill_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)  
