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