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 - linesearch 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) linesearch

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.

See Also#

SNESLineSearch, SNESLineSearchGetNorms(), SNESLineSearchSetNorms(), SNESLineSearchComputeNorms(), SNESLINESEARCHBASIC

Level#

intermediate

Location#

src/snes/linesearch/interface/linesearch.c


Edit on GitLab

Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages