petsc-3.9.4 2018-09-11
TaoLineSearchRegister
Adds a line-search algorithm to the registry Not collective
Input Parameters
| sname | - name of a new user-defined solver
|
| func | - routine to Create method context
|
Notes
TaoLineSearchRegister() may be called multiple times to add several user-defined solvers.
Sample usage
TaoLineSearchRegister("my_linesearch",MyLinesearchCreate);
Then, your solver can be chosen with the procedural interface via
TaoLineSearchSetType(ls,"my_linesearch")
or at runtime via the option
-tao_ls_type my_linesearch
See Also
TaoLineSearchRegisterDestroy()
Level
developer
Location
src/tao/linesearch/interface/taolinesearch.c
Index of all TaoLineSearch routines
Table of Contents for all manual pages
Index of all manual pages