PetscObjectRegisterDestroy#
Registers a PETSc object to be destroyed when PetscFinalize()
is called.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscObjectRegisterDestroy(PetscObject obj)
Logically Collective
Input Parameter#
obj - a PETSc object, for example a
Vec
,Mat
orKSP
. It must be cast with a (PetscObject
), for example,PetscObjectRegisterDestroy
((PetscObject
)mat);
Note#
This is used by, for example, PETSC_VIEWER_XXX_()
routines to free the viewer
when PETSc ends.
See Also#
Level#
developer
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages