#include "petsc/private/petscimpl.h" PetscErrorCode PetscObjectStateIncrease(PetscObject obj)Logically Collective
This routine is mostly for internal use by PETSc; a developer need only call it after explicit access to an object's internals. Routines such as VecSet() or MatScale() already call this routine. It is also called, as a precaution, in VecRestoreArray(), MatRestoreRow(), MatDenseRestoreArray().
This routine is logically collective because state equality comparison needs to be possible without communication.
seealso: PetscObjectStateGet()