PetscCtxDestroyFn#
A prototype of a PetscErrorCode (*)(void **) function that is used to free user contexts
Synopsis#
PETSC_EXTERN_TYPEDEF typedef PetscErrorCode PetscCtxDestroyFn(void **);
Notes#
Used in the prototype of functions such as DMSetApplicationContextDestroy()
The function argument is a void ** meaning that this function is called with a pointer to the application context (which is itself a pointer)
thus the destroy implementation must first reference the context via, for example, *(AppCtx **)arg
See Also#
PetscObject, PetscCtxDestroyDefault(), PetscObjectDestroy(), DMSetApplicationContextDestroy()
Level#
intermediate
Location#
Examples#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages