#include "slepcpep.h" PetscErrorCode PEPRegister(const char *name,PetscErrorCode (*function)(PEP))Not Collective
| name | - name of a new user-defined solver | |
| function | - routine to create the solver context |
PEPRegister("my_solver",MySolverCreate);
Then, your solver can be chosen with the procedural interface via
PEPSetType(pep,"my_solver")
or at runtime via the option
-pep_type my_solver