VecViewFromOptions#

View a vector based on values in the options database

Synopsis#

#include "petscvec.h"   
PetscErrorCode VecViewFromOptions(Vec A, PetscObject obj, const char name[])

Collective

Input Parameters#

  • A - the vector

  • obj - Optional object that provides the options prefix for this viewing

  • name - command line option

See Also#

Vectors and Parallel Data, Vec, VecView, PetscObjectViewFromOptions(), VecCreate()

Level#

intermediate

Location#

src/vec/vec/interface/vector.c

Examples#

src/vec/vec/utils/tagger/tutorials/ex1.c.html
src/mat/tutorials/ex3.c.html
src/mat/tutorials/ex5cu.cu.html
src/mat/tutorials/ex5k.kokkos.cxx.html
src/dm/impls/plex/tutorials/ex7.c.html
src/dm/impls/swarm/tutorials/ex1.c.html
src/dm/dt/dualspace/impls/lagrange/tutorials/ex2.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex13.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex20.c.html


Edit on GitLab

Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages