Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: A new way of installing Telemac on Windows

A new way of installing Telemac on Windows 4 months 2 weeks ago #45141

  • rjj
  • rjj's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 2
I was using other people's docker images and realized that I was missing the debug configuration, as well as the root account setup. I didn't know if anyone had perfected this, so I built a couple docker images as follows:

im_2024-07-08.png



I provide telemac v8p4r0, v8p5r0 two versions, they do not include debug, so after compilation of the memory is more economical, the administrator password is 1, if you need other versions I can help to build.

The other debug configurations included are telemac v8p4r0debug, v8p5r0debug versions, I modified the systel.cfg file and compiled it with gfortranMPI.debug configurations, debugging with gdb.

What's more:1.Since I am a novice telemac user, I don't have the need to use AED2, MED, GOTM, so I didn't install the three libraries;2, I only did some tests under telemac2d, and the result is workable, but for the modules such as gaia, tomawac, etc., I didn't do the test.3. In order to compress the memory of the mirror, I removed the examples, notebooks, documentation, optionals folders, users can download these folders to win system and access them by mounting the folders.4. This mirror is built based on ubuntu20.04. 5.This is all the installed libraries:git,wget,passwd, python-is-python3,python3-numpy,python3-distutils,libpython3-dev,gfortran,gdb,make,python3-scipy,python3-matplotlib,openmpi-bin,libopenmpi-dev, metis,libmetis-dev, hdf5-tools,libhdf5-dev

Here is a tutorial on how to use the image:
First, make sure that you have properly installed WSL (only required on win), docker desktop.
Second, make sure docker desktop is working in the background.
Third, open the power shell window (shortcut: in any folder, hold down shift while right clicking the mouse)
Fourth.
4.1: Pull the image
docker pull registry.cn-hangzhou.aliyuncs.com/rujunjie/telemac:v8p5r0debug
4.2 Modify the image name
docker tag registry.cn-hangzhou.aliyuncs.com/rujunjie/telemac:v8p5r0debug telemac:v8p5r0
4.3.1 Running directly
docker run --rm -v ${PWD}:/rjj telemac:v8p5r0 telemac2d.py <casefile>.cas [--ncsize=<#cores>] [--t]
For example
docker run --rm -v ${PWD}:/rjj telemac:v8p5r0 telemac2d.py t2d_culm.cas --ncsize=2 -t
${PWD} to get the current path of the power shell command line to mount it to the container's rjj directory; v8p5r0 can be replaced with other versions; parallel computing is optional, --t means to keep the temporary folder, and it is mandatory if you need to use the debug function.
4.3.2 Running interactively
docker run --rm -it telemac:v8p5r0 /bin/bash
After that
telemac2d.py <casefile>.cas [--ncsize=<#cores>] [--t]
For example
telemac2d.py t2d_culm.cas --ncsize=2 -t
4.4 Debug Options
Use ll or ls command to check the current file, use cd command to enter into the temporary folder, enter ll or ls command again to check if there is out_telemac2d file in the temporary folder, if there is, then enter gdb out_telemac2d,enter debug mode, enter quit (abbreviated as q) to exit. Please refer to the tutorial of gdb for specific debugging methods.

All the files involved in running the container are local, and will not generate superfluous garbage inside the container; in addition, if you need to install software in the container or other operations that require root identity, enter su after step 4.3.2, with the password 1.

Docker can also run on mac, linux system, but I only have a win system computer, so did not do the test.

To accomplish this, I have borrowed from the previous work of the telemac community:
https://github.com/jamal919/telemac-docker
and
http://www.opentelemac.org/index.php/kunena/10-documentation/11984-how-to-debug-telemac2d?limitstart=0

I'm a newbie, so please correct me if I've missed anything.
Yours sincerely
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.