Note
THIS INSTALLS LEGACY FEniCS 2019 FROM BITBUCKET
Build DOLFIN/FEniCS, mshr and PETSc/SLEPc within a Python virtualenv, using system packages for OpenMPI, OpenBLAS, LAPACK, HDF5, etc, from the Arch Linux official repository. (Build scripts originally inspired by Jack Hale.)
Note
Updates of the system packages such as hdf5 are likely to break dolfin. A better solution than this mix of compiled and packaged dependencies could be to manually compile all dependencies.
- openmpi
- hdf5-openmpi
- openblas-lapack
- eigen
- pybind11
- doxygen
- cython
- jupyter
- cmake
Python packages:
- python-mpi4py
- python-h5py
- python-sympy
For mshr:
- gmp
- mpfr
- Boost 1.73
- PETSc 3.13 with suitesparse, mumps, ...
- SLEPc 3.13
Configure and run
build_all.sh
:./build_all.sh |& tee build.log
Load the FEniCS environment (modules, environment variables, python venv) with:
source $PREFIX/share/dolfin/dolfin.conf
where
$PREFIX
is as specified inbuild_all.sh
.Test the installation with the Poisson example:
and in parallel:
mpirun -n 4 python3 test_poisson.py