VecSetOption#
Sets an option for controlling a vector’s behavior with VecSetValues() and related routines
Synopsis#
#include "petscvec.h"
PetscErrorCode VecSetOption(Vec x, VecOption op, PetscBool flag)
Collective
Input Parameters#
x - the vector
op - the
VecOptionflag - turn the option on or off
See Also#
Vectors and Parallel Data, Vec, VecSetValues(), VecOption, MatSetOption()
Level#
intermediate
Location#
Examples#
src/vec/vec/tests/ex15.c
src/vec/vec/tests/ex16.c
src/vec/vec/tests/ex29.c
src/vec/vec/tests/ex36.c
src/vec/vec/tests/ex49.c
src/vec/vec/tests/ex61.c
src/ksp/ksp/tutorials/ex71.c
Implementations#
VecSetOption_MPI() in src/vec/vec/impls/mpi/pbvec.c
VecSetOption_Seq() in src/vec/vec/impls/seq/bvec2.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages