SNESGetSolution

Returns the vector where the approximate solution is stored.

Synopsis

int SNESGetSolution(SNES snes,Vec *x)
Not Collective, but Vec is parallel if SNES is parallel

Input Parameter

snes -the SNES context

Output Parameter

x -the solution

Keywords

SNES, nonlinear, get, solution

See Also

SNESGetFunction(), SNESGetGradient(), SNESGetSolutionUpdate()

Examples

src/snes/examples/tutorials/ex2.c
src/snes/examples/tutorials/ex3.c

Location: src/snes/interface/snes.c
SNES Index
Table of Contents