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