VecSetFromOptions
Sets the vector type from the options database. Defaults to a PETSc sequential vector on one processor and a PETSc MPI vector on more than one processor.
Synopsis
#include "petscvec.h"
int VecSetFromOptions(Vec vec)
Collective on Vec
Input Parameter
vec -the vector
Notes
Must be called after VecCreate() but before the vector is used.
Keywords
vector, set, from, options
See Also
VecCreate()
Level:developer
Location:src/vec/interface/vnake.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/vec/examples/tutorials/ex1.c
src/vec/examples/tutorials/ex1e.c
src/vec/examples/tutorials/ex3.c
src/vec/examples/tutorials/ex5.c
src/vec/examples/tutorials/ex6.c
src/vec/examples/tutorials/ex7.c
src/vec/examples/tutorials/ex10.c
src/vec/examples/tutorials/ex11.c
src/vec/examples/tutorials/ex12.c
src/vec/examples/tutorials/ex1f.F
src/vec/examples/tutorials/ex3f.F