petsc-3.3-p7 2013-05-11

SNESLineSearchSetType

Sets the linesearch type

Synopsis

#include "petscsnes.h" 
PetscErrorCode SNESLineSearchSetType(SNESLineSearch linesearch, const SNESLineSearchType type)

Input Parameters

linesearch - linesearch context
type - The type of line search to be used

Available Types

basic - Simple damping line search.
bt - Backtracking line search over the L2 norm of the function
l2 - Secant line search over the L2 norm of the function
cp - Critical point secant line search assuming F(x) = grad G(x) for some unknown G(x)
shell - User provided SNESLineSearch implementation

Logically Collective on SNESLineSearch

See Also

SNESLineSearchCreate()

Level:intermediate
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
src/snes/examples/tutorials/ex39f90.F.html