VecZeroEntries#
puts a 0.0
in each element of a vector
Synopsis#
#include "petscvec.h"
PetscErrorCode VecZeroEntries(Vec vec)
Logically Collective
Input Parameter#
vec - The vector
Note#
If the norm of the vector is known to be zero then this skips the unneeded zeroing process
See Also#
Vectors and Parallel Data, Vec
, VecCreate()
, VecSetOptionsPrefix()
, VecSet()
, VecSetValues()
Level#
beginner
Location#
Examples#
src/ksp/ksp/tutorials/ex69.c
src/ts/tutorials/ex24.c
src/ts/tutorials/extchem.c
src/ts/tutorials/extchemfield.c
src/ts/tutorials/ex31.c
src/ts/tutorials/ex9.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
src/ts/tutorials/ex14.c
src/ts/tutorials/ex10.c
src/vec/vec/tutorials/ex44.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages