slepc-3.6.3 2016-03-29
Report Typos and Errors

# STRegister

Adds a method to the spectral transformation package.

### Synopsis

    #include "slepcst.h"
    PetscErrorCode STRegister(const char *name,PetscErrorCode (*function)(ST))

Not collective

### Input Parameters

| name | - name of a new user-defined transformation
| function | - routine to create method context

### Notes

STRegister() may be called multiple times to add several user-defined spectral transformations.

### Sample usage

       STRegister("my_solver",MySolverCreate);

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

        STSetType(st,"my_solver")

or at runtime via the option

        -st_type my_solver

### See Also

STRegisterAll()

Location: src/sys/classes/st/interface/stfunc.c
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages