Vectors

See the vectors manual pages as well as the detailed discussion of the vectors in the PETSc users manual for details.

 Objectives: To demonstrate basic vector capabilities. To demonstrate creation/destruction of PETSc objects.

Programs: ${PETSC_DIR}/src/vec/examples/tutorials/ex1.c 
or ${PETSC_DIR}/src/vec/examples/tutorials/ex1f.F
Runtime commands: 
% mpiexec -np 2 ex1
or
% mpiexec -np 2 ex1f

Objective: To demonstrate parallel vector layout.

Programs: ${PETSC_DIR}/src/vec/examples/tutorials/ex3.c
or ${PETSC_DIR}/src/vec/examples/tutorials/ex3f.F
Runtime commands: 
% mpiexec -np 2 ex3 -draw_pause -1
or
% mpiexec -np 2 ex3f -draw_pause -1
where -draw_pause -1 :indicates you must click the RIGHT mouse button in the graphics display window to advance the program