petsc-3.7.1 2016-05-15
Report Typos and Errors

TaoRegister

Adds a method to the TAO package for unconstrained minimization.

Synopsis

TaoRegister(char *name_solver,char *path,char *name_Create,int (*routine_Create)(Tao))
Not collective Many br

Input Parameters

sname - name of a new user-defined solver Many br
func - routine to Create method context Many br

Notes

TaoRegister() may be called multiple times to add several user-defined solvers. Many br

Sample usage

   TaoRegister("my_solver",MySolverCreate);
Many br

Then, your solver can be chosen with the procedural interface via Many br

    TaoSetType(tao,"my_solver")
or at runtime via the option Many br
    -tao_type my_solver

Many br

See Also

TaoRegisterAll(), TaoRegisterDestroy()

Level:advanced
Location:
src/tao/interface/taosolver.c
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages