FEniCS

From Alliance Doc
Revision as of 01:33, 2 September 2017 by Oldeman (talk | contribs) (Need to disable/skip CMAKE's setting of rpath to get proper rpaths.)
Jump to navigation Jump to search
Other languages:

FEniCS is a popular open-source computing platform for solving partial differential equations (PDEs).

Installation instructions

File : fenics_install.sh

module load hdf5-mpi/1.8.18 boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6

mkdir fenics && cd fenics
git clone https://bitbucket.org/fenics-project/fiat.git
git clone https://bitbucket.org/fenics-project/instant.git
git clone https://bitbucket.org/fenics-project/dijitso.git
git clone https://bitbucket.org/fenics-project/ufl.git
git clone https://bitbucket.org/fenics-project/ffc.git
git clone https://bitbucket.org/fenics-project/dolfin.git

pyvenv ~/fenics
source ~/fenics/bin/activate
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 - 
pip3 install ply
cd dolfin  
mkdir build && cd build && cmake .. -DDOLFIN_SKIP_BUILD_TESTS=true -DEIGEN3_INCLUDE_DIR=$EBROOTEIGEN/include  -DHDF5_ROOT=$EBROOTHDF5 -DCMAKE_INSTALL_PREFIX=$HOME/software/dolfin -DCMAKE_SKIP_RPATH=ON && nice make -j install && cd -
sed -i s'^export LD_LIBRARY_PATH=/lib^#export LD_LIBRARY_PATH=/lib^' ~/software/dolfin/share/dolfin/dolfin.conf


To run the installed program, perform the following operations to set up your environment:


File : fenics_run.sh

module load hdf5-mpi/1.8.18 boost eigen python/3 python35-scipy-stack/2017a petsc/3.7.5 fftw-mpi/3.3.6
source ~/software/dolfin/share/dolfin/dolfin.conf
source ~/fenics/bin/activate