#include "slepcsvd.h" PetscErrorCode SVDRegister(const char *name,PetscErrorCode (*function)(SVD))Not Collective
name | - name of a new user-defined solver | |
function | - routine to create the solver context |
SVDRegister("my_solver",MySolverCreate);
Then, your solver can be chosen with the procedural interface via
SVDSetType(svd,"my_solver")or at runtime via the option
-svd_type my_solver