#include "slepcst.h" PetscErrorCode STRegister(const char *name,PetscErrorCode (*function)(ST))Not Collective
name | - name of a new user-defined transformation | |
function | - routine to create method context |
STRegister("my_transform",MyTransformCreate);
Then, your spectral transform can be chosen with the procedural interface via
STSetType(st,"my_transform")or at runtime via the option
-st_type my_transform