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, see
SNESLineSearchType
Options Database Key#
-snes_linesearch_type
- basic (or equivalently none), bt, l2, cp, nleqerr, shell
See Also#
SNESLineSearch
, SNESLineSearchType
, SNESLineSearchCreate()
, SNESLineSearchSetFromOptions()
, SNESLineSearchGetType()
Level#
intermediate
Location#
Examples#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages