- Description
- PETSc is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations.
- Modulefile
petsc
- Documentation
- PETSc homepage
- Usage
- Here is an example how one could link their code compiled with GCC against the appropriate PETSc library:
$ module load gcc openmpi/gcc petsc/gcc
$ gcc <compiler commands> -I$PETSC/include -L$PETSC/lib -lpetsc
- Usage in Makefile
- Here is how to include the PETSc variables into your makefile. If you define the compile rules yourself, then skip the second line:
- PETSc 3.x:
include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules
- PETSc 2.x:
include ${PETSC_DIR}/bmake/common/variables
include ${PETSC_DIR}/bmake/common/rules