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