SNESLineSearchSetType#
Sets the linesearch type
Synopsis#
#include "petscsnes.h"
PetscErrorCode SNESLineSearchSetType(SNESLineSearch linesearch, SNESLineSearchType type)
Logically Collective
Input Parameters#
linesearch - linesearch context
type - The type of line search to be used
Available Types#
SNESLINESEARCHBASIC
- (or equivalentlySNESLINESEARCHNONE
) Simple damping line search, defaults to using the full Newton stepSNESLINESEARCHBT
- Backtracking line search over the L2 norm of the functionSNESLINESEARCHL2
- Secant line search over the L2 norm of the functionSNESLINESEARCHCP
- Critical point secant line search assuming F(x) = grad G(x) for some unknown G(x)SNESLINESEARCHNLEQERR
- Affine-covariant error-oriented linesearchSNESLINESEARCHSHELL
- User providedSNESLineSearch
implementation
Options Database Key#
-snes_linesearch_type
- basic (or equivalently none), bt, l2, cp, nleqerr, shell
See Also#
SNESLineSearch
, SNESLineSearchType
, SNESLineSearchCreate()
, SNESLineSearchType
, SNESLineSearchSetFromOptions()
, SNESLineSearchGetType()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex1f.F90
src/ts/tutorials/ex22.c
src/ts/tutorials/ex22f.F90
src/ts/utils/dmplexlandau/tutorials/ex1f90.F90
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages