SNESSolve
Solves a nonlinear system. Call SNESSolve after calling SNESCreate() and optional routines of the form SNESSetXXX().
Synopsis
#include "snes.h"
int SNESSolve(SNES snes,Vec x,int *its)
Collective on SNES
Input Parameters
| snes | - the SNES context
|
| x | - the solution vector
|
Output Parameter
its -number of iterations until termination
Notes
The user should initialize the vector,x, with the initial guess
for the nonlinear solve prior to calling SNESSolve. In particular,
to employ an initial guess of zero, the user should explicitly set
this vector to zero by calling VecSet().
Keywords
SNES, nonlinear, solve
See Also
SNESCreate(), SNESDestroy()
Examples
src/snes/examples/tutorials/ex1f.F
src/snes/examples/tutorials/ex4f.F
src/snes/examples/tutorials/ex5f.F
src/snes/examples/tutorials/ex5f90.F
src/snes/examples/tutorials/ex4.c
src/snes/examples/tutorials/ex1.c
src/snes/examples/tutorials/ex2.c
src/snes/examples/tutorials/ex5.c
src/snes/examples/tutorials/ex3.c
src/snes/examples/tutorials/ex6.c
src/snes/examples/tutorials/ex12.c
src/snes/examples/tutorials/ex5s.c
src/snes/examples/tutorials/ex7.c
src/snes/examples/tutorials/ex8.c
src/snes/examples/tutorials/ex13.c
src/snes/examples/tutorials/ex9.c
src/snes/examples/tutorials/ex14.c
src/snes/examples/tutorials/ex15.c
src/snes/examples/tutorials/ex5c.c
src/snes/examples/tutorials/ex16.c
src/snes/examples/tutorials/ex5d.c
Level:beginner
Location:src/snes/interface/snes.c
SNES Index
Table of Contents