SNESSetLineSearchParams

Sets the parameters associated with the line search routine in the Newton-based method SNESEQLS.

Synopsis

int SNESSetLineSearchParams(SNES snes,double alpha,double maxstep,double steptol)
Collective on SNES

Input Parameters

snes - The nonlinear context obtained from SNESCreate()
alpha - The scalar such that x_{n+1} . x_{n+1} <= x_n . x_n - alpha |x_n . J . x_n|
maxstep - The maximum norm of the update vector
steptol - The minimum norm fraction of the original step after scaling

Note

Pass in PETSC_DEFAULT for any parameter you do not wish to change.

Contributed by: Mathew Knepley

Keywords

SNES, nonlinear, set, line search params

See Also

SNESGetLineSearchParams(), SNESSetLineSearch()

Level:intermediate
Location:
src/snes/impls/ls/lsparams.c
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages