QEPRegisterDynamic

Adds a method to the quadratic eigenproblem solver package.

Synopsis

PetscErrorCode QEPRegisterDynamic(const char *name_solver,const char *path,const char *name_create,PetscErrorCode (*routine_create)(QEP))
Not Collective

Input Parameters

name_solver - name of a new user-defined solver
path - path (either absolute or relative) the library containing this solver
name_create - name of routine to create the solver context
routine_create - routine to create the solver context

Notes

QEPRegisterDynamic() may be called multiple times to add several user-defined solvers.

If dynamic libraries are used, then the fourth input argument (routine_create) is ignored.

Sample usage

   QEPRegisterDynamic("my_solver",/home/username/my_lib/lib/libO/solaris/mylib.a,
               "MySolverCreate",MySolverCreate);

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

    QEPSetType(qep,"my_solver")
or at runtime via the option
    -qep_type my_solver

See Also

QEPRegisterDestroy(), QEPRegisterAll()

Location: src/qep/../../include/slepcqep.h
Index of all QEP routines
Table of Contents for all manual pages
Index of all manual pages