#includeLogically Collective on PetscObjectPetscErrorCode PetscObjectComposeFunction(PetscObject obj,const char name[],void (*fptr)(void))
obj | - the PETSc object; this must be cast with a (PetscObject), for example, PetscObjectCompose((PetscObject)mat,...); | |
name | - name associated with the child function | |
fname | - name of the function | |
fptr | - function pointer |
PetscObjectComposeFunction() can be used with any PETSc object (such as Mat, Vec, KSP, SNES, etc.) or any user-provided object.
Level:advanced
Location:src/sys/objects/inherit.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages