#include "slepceps.h" PetscErrorCode EPSRegister(const char *name,PetscErrorCode (*function)(EPS))Not Collective
name | - name of a new user-defined solver | |
function | - routine to create the solver context |
EPSRegister("my_solver",MySolverCreate);
Then, your solver can be chosen with the procedural interface via
EPSSetType(eps,"my_solver")or at runtime via the option
-eps_type my_solver