petsc-3.3-p7 2013-05-11

TSGLRegisterDynamic

adds a TSGL implementation

Synopsis

PetscErrorCode TSGLRegisterDynamic(const char *name_scheme,const char *path,const char *name_create,PetscErrorCode (*routine_create)(TS))
Not Collective

Input Parameters

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

Notes

TSGLRegisterDynamic() may be called multiple times to add several user-defined families.

If dynamic libraries are used, then the fourth input argument (routine_create) is ignored.

Sample usage

   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.

Keywords

TSGL, register

See Also

TSGLRegisterAll()

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