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 a (PetscObject), for example, PetscObjectGetReference((PetscObject) mat,&cnt);

Output Parameter

cnt -the reference count

See Also

PetscObjectCompose(), PetscObjectDereference(), PetscObjectReference()

Location: src/sys/src/objectsinherit.c
System Index
Table of Contents