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.

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.html
src/vec/examples/tutorials/ex1e.c.html
src/vec/examples/tutorials/ex3.c.html
src/vec/examples/tutorials/ex5.c.html
src/vec/examples/tutorials/ex6.c.html
src/vec/examples/tutorials/ex7.c.html
src/vec/examples/tutorials/ex10.c.html
src/vec/examples/tutorials/ex11.c.html
src/vec/examples/tutorials/ex12.c.html
src/vec/examples/tutorials/ex1f.F.html
src/vec/examples/tutorials/ex3f.F.html