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_TRUE if the vector state matched the snapshot before it was updated, PETSC_FALSE otherwise

See Also#

Vectors and Parallel Data, Vec, VecState, VecGetState(), VecStateCompare(), VecStateInvalidate()

Level#

developer

Location#

src/vec/vec/interface/vector.c

Examples#

src/vec/vec/tests/ex34.c


Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages