petsc-3.3-p7 2013-05-11

PetscFListAdd

Given a routine and a string id, saves that routine in the specified registry.

Synopsis

#include "petscsys.h" 
PetscErrorCode  PetscFListAdd(PetscFList *fl,const char name[],const char rname[],void (*fnc)(void))
Not Collective

Input Parameters

fl - pointer registry
name - string to identify routine
rname - routine name in dynamic library
fnc - function pointer (optional if using dynamic libraries)

Notes

To remove a registered routine, pass in a PETSC_NULL rname and fnc().

Users who wish to register new classes for use by a particular PETSc component (e.g., SNES) should generally call the registration routine for that particular component (e.g., SNESRegisterDynamic()) instead of calling PetscFListAdd() directly.

${PETSC_ARCH}, ${PETSC_DIR}, ${PETSC_LIB_DIR}, or ${any environmental variable} occuring in pathname will be replaced with appropriate values.

See Also

PetscFListDestroy(), SNESRegisterDynamic(), KSPRegisterDynamic(),
PCRegisterDynamic(), TSRegisterDynamic(), PetscFList

Level:developer
Location:
src/sys/dll/reg.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ts/examples/tutorials/ex8.c.html
src/ts/examples/tutorials/ex9.c.html