petsc-3.7.3 2016-07-24
Report Typos and Errors

# SNESLineSearchGetVecs

Gets the vectors from the SNESLineSearch context

### Synopsis

    #include "petscsnes.h"
    PetscErrorCode SNESLineSearchGetVecs(SNESLineSearch linesearch,Vec *X,Vec *F, Vec *Y,Vec *W,Vec *G)

### Input Parameters

linesearch -linesearch context

### Output Parameters

| X | - Solution vector
| F | - Function vector
| Y | - Search direction vector
| W | - Solution work vector
| G | - Function work vector

### Notes

At the beginning of a line search application, X should contain a solution and the vector F the function computed at X. At the end of the line search application, X should contain the new solution, and F the function evaluated at the new solution.

These vectors are owned by the SNESLineSearch and should not be destroyed by the caller

### See Also

SNESLineSearchGetNorms(), SNESLineSearchSetVecs()

Level:advanced
Location: src/snes/linesearch/interface/linesearch.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/snes/examples/tutorials/ex1f.F.html