:orphan: # SNESLineSearchSetVecs Sets the vectors on the `SNESLineSearch` context ## Synopsis ``` #include "petscsnes.h" PetscErrorCode SNESLineSearchSetVecs(SNESLineSearch linesearch, Vec X, Vec F, Vec Y, Vec W, Vec G) ``` Logically Collective ## Input Parameters - ***linesearch -*** linesearch context - ***X -*** Solution vector - ***F -*** Function vector - ***Y -*** Search direction vector - ***W -*** Solution work vector - ***G -*** Function work vector ## See Also `SNESLineSearch`, `SNESLineSearchSetNorms()`, `SNESLineSearchGetVecs()` ## Level advanced ## 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)