petsc-3.3-p7 2013-05-11

TSAdaptType

String with the name of TSAdapt scheme or the creation function with an optional dynamic library name, for example http://www.mcs.anl.gov/petsc/lib.a:mytsgladaptcreate()

Synopsis

#define TSAdaptType  char*
#define TSADAPTBASIC "basic"
#define TSADAPTNONE  "none"
#define TSADAPTCFL   "cfl"

/*MC
   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:
.vb
   TSAdaptRegisterDynamic("my_scheme",/home/username/my_lib/lib/libO/solaris/mylib.a,
                            "MySchemeCreate",MySchemeCreate);

See Also

TSAdaptSetType(), TS

Level:beginner
Location:
src/ts/adapt/../../../include/petscts.h
Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages