# PCFactorGetLevels
Gets the number of levels of fill to use. 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCFactorGetLevels(PC pc, PetscInt *levels)
```
Logically Collective on pc


## Input Parameters

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



## Output Parameter

- ***levels -*** number of levels of fill





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

## Level
intermediate

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

## Implementations

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