slepc-3.15.2 2021-09-20
Report Typos and Errors

NEPRegister

Adds a method to the nonlinear eigenproblem solver package.

Synopsis

#include "slepcnep.h" 
PetscErrorCode NEPRegister(const char *name,PetscErrorCode (*function)(NEP))
Not Collective

Input Parameters

name  - name of a new user-defined solver
function  - routine to create the solver context

Notes

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

Sample usage

    NEPRegister("my_solver",MySolverCreate);

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

    NEPSetType(nep,"my_solver")
or at runtime via the option
    -nep_type my_solver

See Also

NEPRegisterAll()

Location: src/nep/interface/nepbasic.c
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages