PetscObjectDereference#

Indicates to any PetscObject that it is being referenced by one less PetscObject. This decreases the reference count for that object by one.

Synopsis#

Collective on obj if reference reaches 0 otherwise Logically Collective

Input Parameter#

Notes#

PetscObjectDestroy() sets the obj pointer to NULL after the call, this routine does not.

If obj is NULL this function returns without doing anything.

See Also#

PetscObjectCompose(), PetscObjectReference(), PetscObjectDestroy(), PetscObject

Level#

advanced

Location#

src/sys/objects/inherit.c

Examples#

src/snes/tutorials/ex35.c
src/ts/tutorials/ex30.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages