petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscFunctionListAdd

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

Synopsis

#include <petscsys.h>
PetscErrorCode PetscFunctionListAdd(PetscFunctionList *flist,const char name[],void (*fptr)(void))
Not Collective Many br

Input Parameters

flist - pointer to function list object Many br
name - string to identify routine Many br
fptr - function pointer Many br

Notes

To remove a registered routine, pass in a NULL fptr. Many br

Users who wish to register new classes for use by a particular PETSc Many brcomponent (e.g., SNES) should generally call the registration routine Many brfor that particular component (e.g., SNESRegister()) instead of Many brcalling PetscFunctionListAdd() directly. Many br

Many br

See Also

PetscFunctionListDestroy(), SNESRegister(), KSPRegister(),
PCRegister(), TSRegister(), PetscFunctionList, PetscObjectComposeFunction() Many br

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
src/ts/examples/tutorials/ex11.c.html