PetscObjectGetReference
Gets the current reference count for any PETSc object.
Synopsis
int PetscObjectGetReference(PetscObject obj,int *cnt)
Not Collective
Input Parameter
obj -the PETSc object; this must be cast with (PetscObject), for example,
PetscObjectGetReference((PetscObject) mat,&cnt);
Output Parameter
cnt -the reference count
See Also
PetscObjectCompose(), PetscObjectDereference(), PetscObjectReference()
Level:advanced
Location:src/sys/src/objects/inherit.c
System Index
Table of Contents