PetscErrorCodeFn#
A prototype of a PetscErrorCode (fn)(void) function
Synopsis#
PETSC_EXTERN_TYPEDEF typedef PetscErrorCode PetscErrorCodeFn(void);
Notes#
PetscErrorCodeFn * plays the role of void * for function pointers in the PETSc API that return an error code.
It is used where a function pointer is needed but it is not possible to use the full prototype of the function,
for example VecSetOperation().
PetscVoidFn is similar to PetscErrorCodeFn but should be used when the function does not return a PetscErrorCode.
The deprecated PetscErrorCodeFunction works as a replacement for PetscErrorCodeFn *.
See Also#
PetscVoidFn, PetscObject, PetscObjectDestroy(), VecSetOperation()
Level#
advanced
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages