:orphan: # 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 src/snes/interface/snespc.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)