PetscObjectDestroy
Destroys any PetscObject, regardless of the type.
Synopsis
int PetscObjectDestroy(PetscObject obj)
Collective on
PetscObject
Input Parameter
obj -any PETSc object, for example a Vec, Mat or KSP.
Thus must be cast with a (PetscObject), for example,
PetscObjectDestroy((PetscObject) mat);
Keywords
object, destroy
Location: src/sys/src/objectsdestroy.c
System Index
Table of Contents