2.4.1. Include Files

Up: Contents Next: The Options Database Previous: Simple PETSc Examples

The C/C++ include files for PETSc should be used via statements such as

   #include "sles.h" 
where sles.h is the include file for the SLES component. Each PETSc program must specify an include file that corresponds to the highest level PETSc objects needed within the program; all of the required lower level include files are automatically included within the higher level files. For example, sles.h includes mat.h (matrices), vector.h (vectors), and petsc.h (base PETSc file). The PETSc include files are located in the directory ${}PETSC_DIR/include. See Section Include Files for a discussion of PETSc include files in Fortran programs.


Up: Contents Next: The Options Database Previous: Simple PETSc Examples