Compares two vectors. Returns true if the two vectors are either pointing to the same memory buffer, or if the two vectors have the same local and global layout as well as bitwise equality of all entries. Does NOT take round-off errors into account.
PetscErrorCode VecEqual(Vec vec1,Vec vec2,PetscBool *flg)
Collective on Vec
|vec1 ||- the first vector
|vec2 ||- the second vector
|flg ||- PETSC_TRUE if the vectors are equal; PETSC_FALSE otherwise.