PetscObjectAddOptionsHandler#
Adds an additional function to check for options when XXXSetFromOptions() is called.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscObjectAddOptionsHandler(PetscObject obj, PetscErrorCode (*handle)(PetscObject obj, PetscOptionItems *PetscOptionsObject, void *ctx), PetscErrorCode (*destroy)(PetscObject obj, void *ctx), void *ctx)
Not Collective
Input Parameters#
obj - the PETSc object
handle - function that checks for options
destroy - function to destroy
ctxif providedctx - optional context for check function
Calling sequence of handle#
obj - the PETSc object
PetscOptionsObject - the
PetscOptionItemsobjectctx - optional context for
handle
Calling sequence of destroy#
obj - the PETSc object
ctx - optional context for
handle
See Also#
KSPSetFromOptions(), PCSetFromOptions(), SNESSetFromOptions(), PetscObjectProcessOptionsHandlers(), PetscObjectDestroyOptionsHandlers(),
PetscObject
Level#
developer
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages