petsc-3.3-p7 2013-05-11


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


#include "petscsys.h" 
PetscErrorCode  PetscOpFListAdd(MPI_Comm comm, PetscOpFList *fl,const char url[],PetscVoidFunction fnc,const char op[], PetscInt numArgs, char* argTypes[])
Formally collective on comm.

Input Parameters

comm - processors adding the op
fl - list of known ops
url - routine locator (optional, if not using dynamic libraries and a nonempty fnc)
fnc - function pointer (optional, if using dynamic libraries and a nonempty url)
op - operation name
numArgs - number of op arguments
argTypes - list of argument type names (const char*)


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

url can be of the form [/path/libname[.so.1.0]:]functionname[()] where items in [] denote optional

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

See Also

PetscOpFListDestroy(),PetscOpFList, PetscFListAdd(), PetscFList

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages