Simple Output from a PETSc Program
In parallel programs one usually wishes to either
${PETSC_DIR}/src/sys/examples/tutorials/ex2.c demonstrates the use of these routines (which you just compiled and ran).
${PETSC_DIR}/src/sys/examples/tutorials/makefile used for compiling the example
Users manual discussion of PETSc IO (unfortunately not yet written)