The examples throughout the library demonstrate thesoftware usage
and can serve as templates for developing
custom applications. We suggest that new PETSc
users examine programs in the directories
${PETSC_DIR}/src/<component>/examples/tutorials,where <component> denotes any of the PETSc components (listed in the following section), such as snes or sles. The HTML version of the manual pages located at
${PETSC_DIR}/docs/manualpages/index.html or http://www.mcs.anl.gov/petsc/docs/manualpages/index.htmlprovides indices (organized by both routine names and concepts) to the tutorial examples.
To write a new application program using PETSc, we suggest the following procedure: