PetscObjectReference
Indicates to any PetscObject that it is being referenced by another PetscObject. This increases the reference count for that object by one.
Synopsis
int PetscObjectReference(PetscObject obj)
Collective on PetscObject
Input Parameter
obj -the PETSc object. This must be cast with (PetscObject), for example,
PetscObjectReference((PetscObject) mat);
See Also
PetscObjectCompose(), PetscObjectDereference()
Level:advanced
Location:src/sys/src/objects/inherit.c
System Index
Table of Contents