Skip to main content

PETSc: Portable, Extensible Toolkit for Scientific Computation

Project description

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


To install PETSc and petsc4py (mpi4py is optional but highly recommended) use:

$ pip install numpy mpi4py
$ pip install petsc petsc4py


You can also install the in-development versions with:

$ pip install Cython numpy mpi4py
$ pip install --no-deps
$ pip install --no-deps

To set the MPI compilers use the environmental variables MPICC, MPICXX, MPIF90.

Provide any PETSc ./configure options using the environmental variable PETSC_CONFIGURE_OPTIONS.

Do not use the PETSc ./configure options --with-cc, --with-cxx, --with-fc, or --with-mpi-dir.

If mpi4py is installed the compilers will obtained from that installation and MPICC, MPICXX, MPIF90 will be ignored.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for petsc, version 3.14.1
Filename, size File type Python version Upload date Hashes
Filename, size petsc-3.14.1.tar.gz (15.6 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page