petsc-3.3-p7 2013-05-11

VecEqual

Compares two vectors.

Synopsis

#include "petscvec.h" 
PetscErrorCode  VecEqual(Vec vec1,Vec vec2,PetscBool  *flg)
Collective on Vec

Input Parameters

vec1 - the first vector
vec2 - the second vector

Output Parameter

flg -PETSC_TRUE if the vectors are equal; PETSC_FALSE otherwise.

Level:intermediate
Location:
src/vec/vec/utils/vinv.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/vec/vec/examples/tutorials/ex19.c.html
src/dm/examples/tutorials/ex9.c.html