VecStateCompareUpdate#
Compares a vector with a state snapshot, then updates the snapshot
Synopsis#
#include "petscvec.h"
PetscErrorCode VecStateCompareUpdate(Vec v, VecState *state, PetscBool *same)
Not Collective
Input Parameter#
v - the vector
Input/Output Parameter#
state - the vector state snapshot to compare with and update
Output Parameter#
same -
PETSC_TRUEif the vector state matched the snapshot before it was updated,PETSC_FALSEotherwise
See Also#
Vectors and Parallel Data, Vec, VecState, VecGetState(), VecStateCompare(), VecStateInvalidate()
Level#
developer
Location#
Examples#
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages