Installation
Set the environmental variable PETSC_DIR to the full path of the PETSc home directory, for example: setenv PETSC_DIR /home/username/petsc-2.1.3
Set the environmental variable PETSC_ARCH, which indicates the architecture on which PETSc will be configured. For example, use setenv PETSC_ARCH solaris_gnu setenv PETSC_ARCH `$PETSC_DIR/bin/petscarch`
In the PETSc home directory, type make BOPT=g all >& make_log to build a debugging version of the PETSc or make BOPT=O all >& make_log to build optimized version of the PETSc libraries.