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

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()

Examples

src/vec/examples/tutorials/ex1f.F
src/vec/examples/tutorials/ex3f.F
src/vec/examples/tutorials/ex1f90.F
src/vec/examples/tutorials/ex11f.F
src/vec/examples/tutorials/ex1.c
src/vec/examples/tutorials/ex3.c
src/vec/examples/tutorials/ex10.c
src/vec/examples/tutorials/ex11.c
src/vec/examples/tutorials/ex12.c
src/adic/examples/tutorials/ex5.c
src/adic/examples/tutorials/ex1.c
src/adic/examples/tutorials/ex2.c
src/adic/examples/tutorials/ex3.c
src/adic/examples/tutorials/ex4.c

Level:developer
Location:src/vec/interface/vnake.c
Vector Index
Table of Contents