#include "petscsys.h" PetscErrorCode PetscObjectStateGet(PetscObject obj,PetscObjectState *state)Not Collective
Notes: object state is an integer which gets increased every time the object is changed. By saving and later querying the object state one can determine whether information about the object is still current. Currently, state is maintained for Vec and Mat objects.
seealso: PetscObjectStateIncrease(), PetscObjectStateSet()