# SNESGetNPCFunction
Gets the current function value and its norm from a nonlinear preconditioner after `SNESSolve()` has been called on that `SNES` 
## Synopsis
```
#include "petscsnes.h"  
PetscErrorCode SNESGetNPCFunction(SNES snes, Vec F, PetscReal *fnorm)
```
Collective


## Input Parameter

- ***snes -*** the `SNES` context



## Output Parameters

- ***F -*** function vector
- ***fnorm -*** the norm of F





## See Also
 `SNESGetNPC()`, `SNESSetNPC()`, `SNESComputeFunction()`, `SNESApplyNPC()`, `SNESSolve()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/interface/snespc.c.html#SNESGetNPCFunction">src/snes/interface/snespc.c</A>


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


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