:orphan: # SNESLineSearchGetNorms Gets the norms for for X, Y, and F. ## Synopsis ``` #include "petscsnes.h" PetscErrorCode SNESLineSearchGetNorms(SNESLineSearch linesearch, PetscReal *xnorm, PetscReal *fnorm, PetscReal *ynorm) ``` Not Collective ## Input Parameter - ***linesearch -*** linesearch context ## Output Parameters - ***xnorm -*** The norm of the current solution - ***fnorm -*** The norm of the current function, this is the `norm(function(X))` where `X` is the current solution. - ***ynorm -*** The norm of the current update ## Note Some values may not be up to date at particular points in the code. This, in combination with `SNESLineSearchSetNorms()`, allow the line search and the `SNESSolve_XXX()` to share computed values. ## See Also `SNESLineSearch`, `SNESLineSearchSetNorms()` `SNESLineSearchGetVecs()` ## Level developer ## Location src/snes/linesearch/interface/linesearch.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/linesearch/interface/linesearch.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)