TaoRegister#
Adds a method to the Tao package for unconstrained minimization.
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoRegister(const char sname[], PetscErrorCode (*func)(Tao))
Synopsis#
TaoRegister(char *name_solver,char *path,char *name_Create,PetscErrorCode (*routine_Create)(Tao))
Not collective
Input Parameters#
sname - name of a new user-defined solver
func - routine to Create method context
Sample usage#
TaoRegister("my_solver",MySolverCreate);
Then, your solver can be chosen with the procedural interface via
TaoSetType(tao,"my_solver")
or at runtime via the option
-tao_type my_solver
Note#
TaoRegister()
may be called multiple times to add several user-defined solvers.
See Also#
Tao
, TaoSetType()
, TaoRegisterAll()
, TaoRegisterDestroy()
Level#
advanced
Location#
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages