Wiki
Clone wikimshr / Installation
Installation
Binary packages
Binary packages for Debian and Ubuntu are available through the FEniCS Personal Package Archive (PPA). More details at http://fenicsproject.org/download/ubuntu_details.html.
If you have added the FEniCS PPA to your sources.list it should suffice to do
sudo apt-get install fenics
Installation from source
mshr uses CMake for generating Makefiles. In the simplest form this means that
$ cmake <path to mshr source> # configure $ make # build $ make install # install
Configuring mshr
The configuration of mshr is controlled by command line arguments when invoking cmake. Type
$ cmake --help
cmake
by cmake-gui
to configure through a graphical user interface.
Some usefull arguments to cmake include
-DCMAKE_INSTALL_PREFIX=[PATH]
-DCMAKE_BUILD_TYPE=[Debug|Release|]
Release
to get an optimized version and Debug
if you need to include debug symbols in the binary. If you don't what to choose here, go with Release
, the speedup compared to a debug build is large, typically a factor 100-150.
Dependencies
mshr requires Dolfin. If the Dolfin can't be found, the configuration of mshr will fail. In that case, help cmake find Dolfin with the command line argument -DDOLFIN_DIR=[path to Dolfin installation]
mshr relies on CGAL and Tetgen as mesh generation backends. However, they are both built from source as part of the installation. CGAL in turn, needs GMP and MPFR and Boost (boost is also a requirement for Dolfin).
Updated