MagnetTools

1. Prerequis

MagnetTools relies on the following software :

  • freesteam

  • gsl

  • cadna

  • boost-gnuplotiostream

  • fadbad++

  • expokit

  • spherepack

  • eigen3

  • sundials

  • popt,

  • yamlcpp

  • json-spirit

  • nag (only required for Optimization)

2. Container Installation

3. Install from {lncmi} Debian/Ubuntu repository

MagnetTools is packaged for main Debian/Ubuntu distribution. The package is stored in {lncmi} Debian/Ubuntu repository only accessible to {lncmi} member.

To install Salome on your linux box:

  • install the debian-keyring package

sudo apt update
sudo apt install debian-keyring

On Ubuntu:

sudo cp /usr/share/keyrings/debian-maintainers.gpg /etc/apt/trusted.gpg.d/
  • add lncmi.list to /etc/apt/sources.list.d

sudo echo "deb http://euler/~trophime/debian/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/lncmi.list
  • run the following commands:

sudo apt update
sudo apt install magnettools

4. Build From scratch

4.1. Using CMake

  • configure CMake, use the environment or cmake variables <DEPS>_DIR to help CMake find the dependencies (if you do not have write access to the default install prefix of cmake, you need to specify a custom prefix using -DCMAKE_INSTALL_PREFIX)

  • if some required dependencies are not found, you will have to compile them using make install-deps

  • once all the required dependencies are found, you can use make

cmake ~/github/magnettools/ \
 -DCMAKE_VERBOSE_MAKEFILE=ON \
 -DCMAKE_BUILD_TYPE=Release \
 -DMAGNETTOOLS_PYTHON_VERSION=3 \
 -DPYTHON_EXECUTABLE=/usr/bin/python3 \
 -DCMAKE_INSTALL_PREFIX=/home/LNCMI-G/trophime/Modelisation_Linux/
make -j4
make install