Vectors
PETSc vectors (Vec objects) are used to store the field variables in PDE-based (or other) simulations.
Sample
See
src/vec/examples/tutorials/ex1.c
for sample usage.