Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

TELEMAC (Auto-Installation)

Preface

This tutorial walks you through installing open TELEMAC-MASCARET on Debian Linux and Ubuntu-based systems with automatic installer scripts. Plan for roughly 1-2 hours and a stable internet connection; the downloads exceed 1.4 GB. For detailed installation instructions, go to the detailed TELEMAC installation page.

Requirements

System packages

Debian 12
Ubuntu 24 / Mint 22

On Debian 12, ask your system administrator to sudo-install the following packages via aptitude:

sudo apt update

sudo apt install -y python3-numpy python3-scipy python3-matplotlib python3-pip python3-dev python3-venv libgl1-mesa-glx libegl1-mesa libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 python-is-python3 git git-lfs gfortran build-essential cmake dialog gedit gedit-plugins libopenmpi-dev openmpi-bin libhdf5-dev hdf5-tools libmetis-dev libmumps-dev libmumps-seq-dev libscalapack-openmpi-dev libmedc-dev libmed-tools python3-pytest-cython python3-sphinx python3-alabaster python3-cftime libcminpack1 python3-docutils python3-h5py python3-imagesize clang python3-netcdf4 python3-nlopt python3-nose python3-numpydoc python3-patsy python3-psutil liblzf1 python3-stemmer python3-sphinx-rtd-theme python3-sphinxcontrib.websupport sphinx-intl python3-statsmodels python3-toml pyqt5-dev pyqt5-dev-tools libboost-all-dev libcminpack-dev libcppunit-dev doxygen libeigen3-dev libfreeimage-dev libgraphviz-dev libjsoncpp-dev liblapacke-dev libxml2-dev llvm-dev libnlopt-dev libnlopt-cxx-dev libqwt-qt5-dev libfontconfig1-dev libglu1-mesa-dev libxcb-dri2-0-dev libxkbcommon-dev libxkbcommon-x11-dev libxi-dev libxmu-dev libxpm-dev libxft-dev libicu-dev libsqlite3-dev libxcursor-dev libtbb-dev libqt5svg5-dev libqt5x11extras5-dev qtxmlpatterns5-dev-tools libpng-dev libtiff-dev libgeotiff-dev libgif-dev libgeos-dev libgdal-dev texlive-latex-base libxml++2.6-dev libfreetype6-dev libgmp-dev libmpfr-dev libxinerama-dev python3-sip-dev tcl-dev tk-dev

Note that the automatic installer script might detect additional packages required.

Set up installation paths

TELEMAC will be downloaded (git-cloned) from its GitLab repository into a directory you choose, and that will be referred to as ROOT directory in the following. Also, SALOME will be downloaded and installed in this ROOT directory. Select one of the following setups:

SALOME

Choosing the right version of SALOME cannot be reasonably automated, so find and download the latest version of SALOME, and save it in the ROOT directory where you want to install Telemac.

  1. Confirm your Linux version:

  1. Download the SALOME build

  1. Verify the checksum: from SALOME’s md5 page, fetch the matching .md5 file for your archive and verify locally

Get the installer scripts

Run installers

Installation pattern

Note that you might need admin (sudo) rights for installing additional system packages and that the installation can take a while because the script downloads Telemac. The script installs by default Telemac v9.0.0. To install another version, use the --tag "TAG" option when running the scripts; latest tags can be found at https://gitlab.pam-retd.fr/otm/telemac-mascaret.git.

To run the installer, tap (replace ROOT with your ROOT directory and SALOME-x.xx.xSRC.tar.gz with the name of the SALOME tarball that you downloaded):

Debian 12
Ubuntu 24 / Mint 22
cd ROOT
chmod +x telemac_debian12_installer.sh
./telemac_debian12_installer.sh --root "ROOT" --salome-tar "ROOT/SALOME-x.xx.xSRC.tar.gz"

After finishing the installation, the Telemac environment can be loaded and compiled as follows:

cd ROOT/telemac-mascaret/configs/
source pysource.debian12.sh
compile_telemac.py --clean

Note that recompiling is necessary in the case of the Debian12 installer (not required for Ubuntu/Mint).

The installer scripts will clone the telemac-mascaret GitLab repo (with the assigned tag), and a salome folder, in which it unpacks the SALOME tarball. If you encounter errors with SALOME, check out the detailed SALOME installation instructions in the section on the “manual” installation of Telemac.

To test the installation, run the config.py script (after source-ing of the Telemac environment):

config.py

Installation example

Assume you are working on Debian 12, accordingly you downloaded SALOME-9.15.0-native-DB12-SRC.tar.gz, defined the ROOT directory as /home/HyInfo/opt/, and downloaded telemac_debian12_installer.sh. Thus, the installation can be started with these commands:

cd /home/HyInfo/opt
chmod +x telemac_debian12_installer.sh
./telemac_debian12_installer.sh --root "/home/HyInfo/opt" --salome-tar "/home/HyInfo/opt/SALOME-9.15.0-native-DB12-SRC.tar.gz" --salome-md5 "/home/HyInfo/opt/SALOME-9.15.0-native-DB12-SRC.tar.gz"

Now, activate the Telemac environment and compile as follows:

cd /home/HyInfo/opt/telemac-mascaret/configs/
source pysource.debian12.sh
compile_telemac.py --clean

Installation example with another version

Assume you are working on Debian 12, accordingly you downloaded SALOME-9.15.0-native-DB12-SRC.tar.gz, defined the ROOT directory as /home/HyInfo/opt/, downloaded telemac_debian12_installer.sh, and want to install Telemac v9.5.0 (if that existed at https://gitlab.pam-retd.fr/otm/telemac-mascaret.git). This installation can be started with these commands:

cd /home/HyInfo/opt
chmod +x telemac_debian12_installer.sh
./telemac_debian12_installer.sh --root "/home/HyInfo/opt" --tag="v9.5.0" --salome-tar "/home/HyInfo/opt/SALOME-9.15.0-native-DB12-SRC.tar.gz" --salome-md5 "/home/HyInfo/opt/SALOME-9.15.0-native-DB12-SRC.tar.gz"

Now, activate the Telemac environment and compile Telemac as follows:

cd /home/HyInfo/opt/telemac-mascaret/configs/
source pysource.debian12.sh
compile_telemac.py --clean

Re-Install

To fix/reinstall an an existing installation:

  1. Navigate to your TELEMAC directory:

cd ~/opt/telemac-mascaret
  1. Re-run the installer with --skip-apt to regenerate config files (assumes you are using a newer version of the installer script)

chmod +x ./telemac_debian12_installer.sh
./telemac_debian12_installer.sh --skip-apt --root "/ROOTDIR" --salome-tar "ROOT/SALOME-x.xx.xSRC.tar.gz"
  1. Regenerate by re-running config and compile:

source configs/pysource.debian12.sh
compile_telemac.py --clean

Test TELEMAC

Estimated duration: 5-10 minutes.

Load the TELEMAC environment:

Debian 12
Ubuntu 24 / Mint 22
cd ROOT/telemac-mascaret/configs/
source pysource.debian12.sh

Run a predefined case from the examples folder:

cd ~/opt/telemac-mascaret/examples/telemac2d/gouttedo
telemac2d.py t2d_gouttedo.cas

To verify parallelism, install htop to visualize CPU usage:

sudo apt update
sudo apt install htop

Start the CPU monitor:

htop

In a new terminal tab, run a TELEMAC example with the --ncsize=N flag, where N is the number of logical CPUs to use (ensure at least N are available):

cd ~/opt/telemac-mascaret/examples/telemac2d/gouttedo
telemac2d.py t2d_gouttedo.cas --ncsize=4

Alternatively, use --nctile and --ncnode to specify cores per node (NCTILE) and number of nodes (NCNODE), respectively, with NCSIZE = NCTILE * NCNODE. The following two commands are equivalent (from ~/opt/telemac-mascaret/examples/telemac2d/donau):

telemac2d.py t2d_donau.cas --nctile=4 --ncnode=2
telemac2d.py t2d_donau.cas --ncsize=8

Generate TELEMAC Documentation

TELEMAC includes many application examples under /telemac-mascaret/examples/, and you can build the user and reference manuals locally. First, load the TELEMAC environment:

source ~/opt/telemac-mascaret/configs/pysource.mint22.sh

To generate the user manual (this can take a while and requires latex, that is, texlive on Debian/Ubuntu):

doc_telemac.py

To generate the reference manual:

doc_telemac.py --reference

To create documentation and validation reports for all example cases:

validate_telemac.py

Utilities (Pre- & Post-processing)

To install pre- and post-processing utilities, refer to the instructions in the manual installation section, such as BlueKenue or the Q4TS plugin in QGIS. Note that for the Q4TS plugin, your SALOME executable path is /ROOT/salome/salome, and your Telemac environnement script is /ROOT/telemac-mascaret/configs/pysource.debian12.sh (or /ROOT/telemac-mascaret/configs/pysource.mint22.sh if you installed on Ubuntu/Mint).