PETSc for Python

Author:Lisandro Dalcin
Web Site:
Date:Aug 08, 2017


This document describes petsc4py, a Python port to the PETSc libraries.

PETSc (the Portable, Extensible Toolkit for Scientific Computation) is a suite of data structures and routines for the scalable (parallel) solution of scientific applications modeled by partial differential equations. It employs the MPI standard for all message-passing communication.

This package provides an important subset of PETSc functionalities and uses NumPy to efficiently manage input and output of array data.

A good friend of petsc4py is:

  • mpi4py: Python bindings for MPI, the Message Passing Interface.

Other projects depends on petsc4py:

  • slepc4py: Python bindings for SLEPc, the Scalable Library for Eigenvalue Problem Computations.