:orphan:
# SNESLineSearchSetNorms
Gets the computed norms for for X, Y, and F.
## Synopsis
```
#include "petscsnes.h"
PetscErrorCode SNESLineSearchSetNorms(SNESLineSearch linesearch, PetscReal xnorm, PetscReal fnorm, PetscReal ynorm)
```
Collective
## Input Parameters
- ***linesearch -*** linesearch context
- ***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
## See Also
`SNESLineSearch`, `SNESLineSearchGetNorms()`, `SNESLineSearchSetVecs()`
## Level
developer
## Location
src/snes/linesearch/interface/linesearch.c
## Examples
src/snes/tutorials/ex1f.F90
---
[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)