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)

Vorwort

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.

Anforderungen

Systempakete

Debian 12
Ubuntu 24 / Mint 22

Unter Debian 12 bitten Sie Ihren Systemadministrator, die folgenden Pakete über aptitude zu sudo-installieren:

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-dev libmedimport-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

Beachten Sie, dass das automatische Installationsskript möglicherweise zusätzliche erforderliche Pakete erkennt.

Einrichtung von Anlagenpfaden

TELEMAC wird aus seinem GitLab-Repository in ein von Ihnen gewähltes Verzeichnis heruntergeladen (git-cloned) und im Folgenden als ROOT-Verzeichnis bezeichnet. Außerdem wird SALOME heruntergeladen und in diesem ROOT-Verzeichnis installiert. Wählen Sie eines der folgenden Setups aus:

SALOME

Die Auswahl der richtigen Version von SALOME kann nicht automatisiert werden, also suchen und laden Sie die neueste Version von SALOME herunter und speichern Sie sie im ROOT-Verzeichnis, in dem Sie Telemac installieren möchten.

  1. Bestätigen Sie Ihre Linux Version:

  1. Laden Sie den SALOME Build herunter

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

Holen Sie sich die Installer-Scripts

Stellen Sie sicher, dass sich alle Dateien im selben (ROOT-Installations-) Verzeichnis auf Ihrem Computer befinden.

Laufinstallateure

Einbaumuster

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.1.1. 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. Both installers also install the system MED packages and compile TELEMAC automatically at the end of the run (unless you pass --skip-compile).

Um das Installationsprogramm auszuführen, tippen Sie auf (ersetzen Sie ROOT durch Ihr ROOT-Verzeichnis und SALOME-x.xx.xSRC.tar.gz durch den Namen des SALOME-Tarballs, den Sie heruntergeladen haben):

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"

The installer already compiled TELEMAC at the end of its run (unless you passed --skip-compile). To load the environment - and optionally rebuild from scratch - run:

cd ROOT/telemac-mascaret/configs/
source pysource.debian12.sh
compile_telemac.py --clean   # only needed for a fresh rebuild

Die Installationsskripte klonen das telemac-mascaret GitLab-Repo (mit dem zugewiesenen Tag) und einen salome-Ordner, in dem der SALOME-Tarball ausgepackt wird. Wenn bei SALOME Fehler auftreten, schauen Sie sich detailed SALOME installation instructions im Abschnitt “manuelle” Installation von Telemac an.

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

config.py

Installationsbeispiel

Angenommen, Sie arbeiten an Debian 12, entsprechend haben Sie SALOME-9.15.0-native-DB12-SRC.tar.gz heruntergeladen, das ROOT-Verzeichnis als /home/HyInfo/opt/ definiert und telemac_debian12_installer.sh heruntergeladen. Somit kann die Installation mit diesen Befehlen gestartet werden:

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.md5"

Aktivieren Sie nun die Telemac-Umgebung und kompilieren Sie wie folgt:

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

Installationsbeispiel mit einer anderen Version

Angenommen, Sie arbeiten an Debian 12, entsprechend haben Sie SALOME-9.15.0-native-DB12-SRC.tar.gz heruntergeladen, das ROOT-Verzeichnis als /home/HyInfo/opt/ definiert, telemac_debian12_installer.sh heruntergeladen und möchten ** Telemac v9.5.0** installieren (wenn das unter https://gitlab.pam-retd.fr/otm/telemac-mascaret.git existiert). Diese Installation kann mit folgenden Befehlen gestartet werden:

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.md5"

Aktivieren Sie nun die Telemac-Umgebung und kompilieren Sie Telemac wie folgt:

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

Re-Install

Um eine bestehende Installation zu reparieren / neu zu installieren:

  1. Navigieren Sie zu Ihrem TELEMAC-Verzeichnis:

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. Regenerieren durch erneutes Ausführen von config and compile:

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

Test TELEMAC

Geschätzte Dauer: 5-10 Minuten.

Laden Sie die TELEMAC-Umgebung:

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

Um die Parallelität zu überprüfen, installieren Sie htop, um die CPU-Auslastung zu visualisieren:

sudo apt update
sudo apt install htop

Starten Sie den CPU-Monitor:

htop

Führen Sie in einem neuen Terminal-Tab ein TELEMAC-Beispiel mit dem --ncsize=N-Flag aus, wobei N die Anzahl der zu verwendenden logischen CPUs ist (stellen Sie sicher, dass mindestens N verfügbar sind):

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

TELEMAC erzeugen Dokumentation

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

Zur Erstellung des Referenzhandbuchs:

doc_telemac.py --reference

Erstellen von Dokumentations- und Validierungsberichten für alle Beispielfälle:

validate_telemac.py

Versorgungsunternehmen (Vor- und Nachbearbeitung)

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).