:orphan:
# PCFactorGetLevels
Gets the number of levels of fill to use.
## Synopsis
```
#include "petscpc.h"
PetscErrorCode PCFactorGetLevels(PC pc, PetscInt *levels)
```
Logically Collective
## Input Parameter
- ***pc -*** the preconditioner context
## Output Parameter
- ***levels -*** number of levels of fill
## See Also
`PCILU`, `PCICC`, `PCFactorSetLevels()`
## Level
intermediate
## Location
src/ksp/pc/impls/factor/factor.c
## Implementations
PCFactorGetLevels_Factor in src/ksp/pc/impls/factor/factimpl.c
---
[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)