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

Note#

See PetscObjectViewFromOptions() to see the PetscViewer and PetscViewerFormat` available

See Also#

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

Level#

intermediate

Location#

src/vec/vec/interface/vector.c

Examples#

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


Edit on GitLab

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