SNESLineSearchSetComputeNorms#

Turns on or off the computation of final norms in the line search.

Synopsis#

#include "petscsnes.h" 
PetscErrorCode SNESLineSearchSetComputeNorms(SNESLineSearch linesearch, PetscBool flg)

Input Parameters#

  • linesearch - the line search context

  • flg - indicates whether or not to compute norms

Options Database Key#

  • -snes_linesearch_norms - Turns on/off computation of the norms for basic (none) SNESLINESEARCHBASIC line search

Note#

This is most relevant to the SNESLINESEARCHBASIC (or equivalently SNESLINESEARCHNONE) line search type since most line searches have a stopping criteria involving the norm.

Developer Note#

The options database key is misnamed. It should be -snes_linesearch_compute_norms

See Also#

SNES: Nonlinear Solvers, SNES, SNESLineSearch, SNESLineSearchGetNorms(), SNESLineSearchSetNorms(), SNESLineSearchComputeNorms(), SNESLINESEARCHBASIC

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