:orphan:
# SNESFASGetLevels
Gets the number of levels in a `SNESFAS`, including fine and coarse grids 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESFASGetLevels(SNES snes, PetscInt *levels)
```

## Input Parameter

- ***snes -*** the `SNES` nonlinear solver context



## Output parameter

- ***levels -*** the number of levels





## See Also
 `SNESFAS`, `SNESFASSetLevels()`, `PCMGGetLevels()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/impls/fas/fasfunc.c.html#SNESFASGetLevels">src/snes/impls/fas/fasfunc.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/impls/fas/fasfunc.c)


[Index of all SNESFAS routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
