PetscErrorCode TSGLRegisterDynamic(const char *name_scheme,const char *path,const char *name_create,PetscErrorCode (*routine_create)(TS))Not Collective
name_scheme | - name of user-defined general linear scheme | |
path | - path (either absolute or relative) the library containing this scheme | |
name_create | - name of routine to create method context | |
routine_create | - routine to create method context |
If dynamic libraries are used, then the fourth input argument (routine_create) is ignored.
TSGLRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a, "MySchemeCreate",MySchemeCreate);
Then, your scheme can be chosen with the procedural interface via
TSGLSetType(ts,"my_scheme")or at runtime via the option
-ts_gl_type my_scheme
Notes: Environmental variables such as ${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, and others of the form ${any_environmental_variable} occuring in pathname will be replaced with appropriate values.
Level:advanced
Location:src/ts/adapt/../../../include/petscts.h
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages