#include "petscsys.h" PetscErrorCode PetscObjectGetReference(PetscObject obj,PetscInt *cnt)Not Collective
obj | - the PETSc object; this must be cast with (PetscObject), for example, PetscObjectGetReference((PetscObject)mat,&cnt); |
cnt | - the reference count |