Build PETSc, SLEPc, DOLFIN/FENICS, mshr within a Python virtualenv, using system dependencies for OpenMPI, BLAS, LAPACK, HDF5, etc. (credits: inspired by https://bitbucket.org/unilucompmech/fenics-gaia-cluster)
- openmpi-devel
- hdf5-openmpi-devel
- lapack-devel
- openblas-devel
- boost-devel
- eigen3-devel
- pybind11-devel
- python36-devel
- doxygen
For mshr:
- gmp-devel
- mpfr-devel
-
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:
python3 test_poisson.py
and in parallel:
mpirun -n 4 python3 test_poisson.py