#include "petscts.h" PetscErrorCode TSGLLERegister(const char sname[],PetscErrorCode (*function)(TS))Not Collective
| name_scheme | - name of user-defined general linear scheme | |
| routine_create | - routine to create method context | 
   TSGLLERegister("my_scheme",MySchemeCreate);
Then, your scheme can be chosen with the procedural interface via
    TSGLLESetType(ts,"my_scheme")
or at runtime via the option
    -ts_gl_type my_scheme