FEniCS

Local installation

Fool proof(??) step by step instruction

create a virtual python environment named fenics with –system-site-packages

mkvirtualenv --python=`which python` fenics
pip install fenics

activate it by

workon fenics

Old step by step instruction (if you need dolfin)

load the Eigen 3.3 module or newer

module load eigen/3.3.4

get the repositories from git and install

mkdir fenics/src
cd fenics/src
git clone https://bitbucket.org/fenics-project/fiat
git clone https://bitbucket.org/fenics-project/instant
git clone https://bitbucket.org/fenics-project/dijitso
git clone https://bitbucket.org/fenics-project/ufl
git clone https://bitbucket.org/fenics-project/ffc
git clone https://bitbucket.org/fenics-project/dolfin
git clone https://bitbucket.org/fenics-project/mshr
cd fiat    && pip3 install . && cd ..
cd instant && pip3 install . && cd ..
cd dijitso && pip3 install . && cd ..
cd ufl     && pip3 install . && cd ..
cd ffc     && pip3 install . && cd ..
cd dolfin  && mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX:PATH=$VIRTUAL_ENV -D Eigen3_DIR=$EIGEN3_DIR .. && make install && cd ..
cd mshr    && mkdir build && cd build && cmake -D CMAKE_INSTALL_PREFIX:PATH=$VIRTUAL_ENV -D Eigen3_DIR=$EIGEN3_DIR .. && make install && cd ..

update the env variables by putting

source $VIRTUAL_ENV/share/dolfin/dolfin.conf
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VIRTUAL_ENV/lib64/

at the end of

$VIRTUAL_ENV/bin/activate
Docker installation (backup solution)

Fetch the current stable version of FEniCS (usually already provided on your system)

docker start -i fenics
Basic features

List running docker container.

docker ps

List all local available docker container and versions, check if FEniCS is available at all on your PC.

docker ps -a
Log In