petsc-3.3-p7 2013-05-11

TSAdaptRegisterDynamic

adds a TSAdapt implementation

Synopsis

PetscErrorCode TSAdaptRegisterDynamic(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 adaptivity 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

TSAdaptRegisterDynamic() 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

   TSAdaptRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a,
                            "MySchemeCreate",MySchemeCreate);

Then, your scheme can be chosen with the procedural interface via

    TSAdaptSetType(ts,"my_scheme")
or at runtime via the option
    -ts_adapt_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

TSAdapt, register

See Also

TSAdaptRegisterAll()

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