SNESLineSearchRegister#

register a line search type

Synopsis#

#include "petscsnes.h" 
PetscErrorCode SNESLineSearchRegister(const char sname[], PetscErrorCode (*function)(SNESLineSearch ls))

Input Parameters#

  • sname - name of the line search

  • function - the creation function for that type

Calling sequence of function#

  • ls - the linesearch context

See Also#

SNESLineSearch, SNESLineSearchType, SNESLineSearchSetType()

Level#

advanced

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