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¶
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-devBitten Sie unter Ubuntu 24 (oder Mint 22) Ihren Systemadministrator, die folgenden Pakete über aptitude zu installieren:
sudo apt update
sudo apt install -y --no-install-recommends python3-numpy python3-scipy python3-matplotlib python3-pip python3-dev python3-venv libgl1 libegl1 libxrandr2 libxss1 libxcursor1 libxcomposite1 alsa-base libxi6 libxtst6 python-is-python3 git git-lfs gfortran build-essential cmake dialog gedit gedit-plugins libmedc11t64 libmedc-dev libmed-tools libmed11 libmed-dev libmedimport0v5 libmedimport-dev libopenmpi-dev openmpi-bin libhdf5-dev libhdf5-openmpi-dev hdf5-tools libmetis-dev libmumps-seq-dev libmumps-dev libscalapack-openmpi-dev python3-pytest-cython python3-sphinx python3-alabaster python3-cftime libcminpack1 python3-docutils libfreeimage3 python3-h5py python3-imagesize liblapacke clang python3-netcdf4 libnlopt0 libnlopt-cxx0 python3-nlopt python3-nose python3-numpydoc python3-patsy python3-psutil libtbb12 libxml++2.6-2v5 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 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 libtiff5-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-devBeachten 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:
Einzelner Benutzer ohne Admin-Rechte:
ROOT=/home/<USERNAME>/opt(dhROOT=$HOME/opt) (XDG-konforme Alternative:ROOT=$HOME/.local)Gemeinsame Nutzung ohne root: nur wenn bereits ein gruppenbeschreibbarer Standort existiert, z. B. eine NFS-Freigabe wie
ROOT=/srv/shared/telemacSystemweit (Administrator erforderlich) auf Debian-basierten Systemen: bevorzugt
ROOT=/usr/local(Binärdateien in/usr/local/bin, Bibliotheken in/usr/local/lib);ROOT=/optist auch für einen in sich geschlossenen Baum akzeptabel
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.
Bestätigen Sie Ihre Linux Version:
Debian: cat /etc/os-release
Minze:
lsb_release -aUbuntu:
inxi -Sx(funktioniert auch auf Mint)
Laden Sie den SALOME Build herunter
Gehen Sie zum offiziellen SALOME-Downloadformular]
Wählen Sie die neueste Version mit dem Debian/Ubuntu-Build (die mit der Ubuntu/Mint-Basis übereinstimmt); oder wählen Sie das weniger häufig aktualisierte “Linux Universal”
Verify the checksum: from SALOME’s md5 page, fetch the matching
.md5file for your archive and verify locally
Beispiel für den 9.15 Tarball: im Download-Verzeichnis des Tarballs laufen
md5sum SALOME-9.15.0.tar.gz(Terminal)Gehen Sie zu SALOMEs md5 page], wählen Sie die entsprechende md5-Datei aus und überprüfen Sie, ob ihr Inhalt genau der Antwort des Terminals entspricht.
** Überspringen Sie das nicht! **
Holen Sie sich die Installer-Scripts¶
Debian 12-Benutzer herunterladen:
telemac debian12 installer.sh und speichern Sie es im ROOT-Verzeichnis.
systel.debian12.cfg und speichern Sie es im ROOT-Verzeichnis.
pysource
.debian12 .sh] und speichern Sie es im ROOT-Verzeichnis.
Mint 22 / Ubuntu 24 Benutzer herunterladen:
telemac ubuntu24 installer.sh und speichern Sie es im ROOT-Verzeichnis.
systel.mint22.cfg] und speichern Sie es im ROOT-Verzeichnis.
pysource.mint22.sh] und speichern Sie es im ROOT-Verzeichnis.
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://--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):
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 rebuildcd ROOT
chmod +x telemac_ubuntu24_installer.sh
./telemac_ubuntu24_installer.sh --root "ROOT" --salome-tar "ROOT/SALOME-x.xx.xSRC.tar.gz"Nach Abschluss der Installation kann die Telemac-Umgebung wie folgt geladen werden:
cd ROOT/telemac-mascaret/configs/
source pysource.mint22.shDie 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.pyInstallationsbeispiel¶
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 --cleanInstallationsbeispiel 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://
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 --cleanRe-Install¶
Um eine bestehende Installation zu reparieren / neu zu installieren:
Navigieren Sie zu Ihrem TELEMAC-Verzeichnis:
cd ~/opt/telemac-mascaretRe-run the installer with
--skip-aptto 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"Regenerieren durch erneutes Ausführen von config and compile:
source configs/pysource.debian12.sh
compile_telemac.py --cleanTest TELEMAC¶
Geschätzte Dauer: 5-10 Minuten.
Laden Sie die TELEMAC-Umgebung:
cd ROOT/telemac-mascaret/configs/
source pysource.debian12.shcd ROOT/telemac-mascaret/configs/
source pysource.mint22.shRun a predefined case from the examples folder:
cd ~/opt/telemac-mascaret/examples/telemac2d/gouttedo
telemac2d.py t2d_gouttedo.casUm die Parallelität zu überprüfen, installieren Sie htop, um die CPU-Auslastung zu visualisieren:
sudo apt update
sudo apt install htopStarten Sie den CPU-Monitor:
htopFü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=4Alternatively, 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=8Got errors?
If there are severe errors, the automatic installer might not have worked for your system (or subversion). In this case, it is safest, to start over and install Telemac manually.
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.shTo generate the user manual (this can take a while and requires latex, that is, texlive on Debian/Ubuntu):
doc_telemac.pyZur Erstellung des Referenzhandbuchs:
doc_telemac.py --referenceErstellen von Dokumentations- und Validierungsberichten für alle Beispielfälle:
validate_telemac.pyVersorgungsunternehmen (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).