Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Note

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

$ pip install numpy mpi4py
$ pip install petsc petsc4py

Tip

You can also install the in-development versions with:

$ pip install Cython numpy mpi4py
$ pip install --no-deps https://gitlab.com/petsc/petsc/-/archive/master/petsc-master.tar.gz
$ pip install --no-deps https://bitbucket.org/petsc/petsc4py/get/master.tar.gz

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.12.0
Filename, size File type Python version Upload date Hashes
Filename, size petsc-3.12.0.tar.gz (14.2 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page