VecViewFromOptions#
View a vector based on values in the options database
Synopsis#
#include "petscvec.h"
PetscErrorCode VecViewFromOptions(Vec A, PeOp PetscObject obj, const char name[])
Collective
Input Parameters#
A - the vector
obj - optional object that provides the options prefix for this viewing, use
NULLto use the prefix ofAname - command line option
Options Database Key#
-name [viewertype][:…] - option name and values. See
PetscObjectViewFromOptions()for the possible arguments
See Also#
Vectors and Parallel Data, Vec, VecView, PetscObjectViewFromOptions(), VecCreate()
Level#
intermediate
Location#
Examples#
src/snes/tutorials/ex77.c
src/snes/tutorials/ex20.c
src/snes/tutorials/ex36.c
src/snes/tutorials/ex75.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex42.c
src/snes/tutorials/ex11.c
src/snes/tutorials/ex23.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex69.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages