Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Latest commit

 

History

History
78 lines (45 loc) · 2.09 KB

install.rst

File metadata and controls

78 lines (45 loc) · 2.09 KB

Installation

Requirements

You need to have the following software properly installed in order to build SeismicMesh:

* Python >= 3.0 .. note :: The file setup.cfg in the main directory indicates all the Python dependencies and their respective version numbers (if necessary). These packages should be installed at compile time by setuptools

  • pybind11 >= 2.6
  • C++ compiler (GNU or Intel) with support for std++14 or newer.
  • cmake >= 3.0
  • CGAL >= 5.0.0 which requires:

    • MPFR
    • GMP
    • Boost > 1.4.8

Compilation by source

After installing all dependencies, perform :

$  pip install -e .

Testing

Testing is accomplished with tox. The tox package can be installed like so:

pip install tox

To test the installation, serial and parallel capabilities, you can use tox from the top directory of the package:

$ tox

Installation on Clusters

Note

Make sure the CXX environment variable points to your intended compiler!

If installing on a cluster by source with a local installation of CGAL and Boost, you'll need to edit setup.cfg with the CMake arguments so to point the installation to the correct directories. Namely, in setup.py you'll have to edit the list called cmake_args to include :

-DCMAKE_CXX_COMPILER=+/PATH/TO/CPPCOMPILER

-DBoost_INCLUDE_DIR=+/PATH/TO/BOOST/

-DMPFR_LIBRARIES=+/PATH/TO/libmpfr.a

-DMPFR_INCLUDE_DIR=+/PATH/TO/MPFR/include