DOLFINx can be installed using various packages managers, run using containers, or built manually from source.
Spack is the recommended installation tool for high performance computers
See README.md for instructions.
Versioned Docker images will be provided in the future.
The Debian/Ubuntu package is
fenics-dolfinx. The Ubuntu PPA is at
https://launchpad.net/~fenics-packages/+archive/ubuntu/fenics and Debian
packages are at
Installation of DOLFINx requires installation of the C++ core. Most users will also want the Python interface.
C++ compiler (supporting the C++17 standard)
Boost, with the following compiled Boost components
CMake [build dependency]
ufcx.h, provided by FFCx]
HDF5 (with MPI support enabled)
From ParMETIS, KaHIP or PT-SCOTCH, ParMETIS is recommended.
Below are additional requirements for the Python interface.
FFCx, UFL and Basix (http://github.com/FEniCS/).
pyvista (for plotting)
Building and installing
The C++ core is built using CMake. Create a build directory in
mkdir -p build/ and in the build run directory:
cmake ../ make install
To set the installation prefix:
cmake -DCMAKE_INSTALL_PREFIX=<my-install-path> ../ make install
After installation of the C++ core, from the
python/ directory the
Python interface can be installed using:
pip install .