Welcome, Guest
Username: Password: Remember me

TOPIC: How to debug Telemac2D

How to debug Telemac2D 5 years 10 months ago #32676

  • nguyenblue
  • nguyenblue's Avatar
Thank you very much
I update it, but I suppose [configuration] (in your file) need to be [Configuration]
I change my file with your modification and my "[Configuration]".
I also rewrite my USETELCFG from hpc to gfortran.debug.
And it WORKS!!!!!!!


Screenshotfrom2019-01-2309-14-56.png



Thank you very much, you help me so much. From now on, I can debug Fortran code of Telemac for my project. :-)
The administrator has disabled public write access.

How to debug Telemac2D 5 years 10 months ago #32678

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Cool have fun debugging.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

How to debug Telemac2D 3 years 10 months ago #37442

  • kero_feuz
  • kero_feuz's Avatar
show me please how to debug with this error
Attachments:
The administrator has disabled public write access.

How to debug Telemac2D 2 years 1 month ago #41253

  • Elodie09
  • Elodie09's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
Hi!
I don't know if I can ask my question here which is related to this topic and trying to debug the same example: gouttedo.

I have used the configuration given by Yugi in the previous post (#32675) of this topic.

I don't know if it is correct what I did but I changed in the pysource.gfortran.sh USETELCFG gfortran.debug.

When I re-compiled Telemac source code, there was some warnings that were showing which I think it was normal, because it is in the debug mode. At the end, it said My work is done.

Then, I tried to debug the same example: gouttedo by interrupting the code and to generate out_user_fortran.

Then, write gdb out_user_fortran and obtain: No debugging symbols found in out_user_fortran.

Any help would be appreciated,
If needed I can create another topic.
The administrator has disabled public write access.

How to debug Telemac2D 2 years 1 month ago #41255

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

According to your information, the out_user_fortran is not a debug version so I suspect you're running another config ...

Usually to switch between version you should use -c option in the command line ...

Another important point, you should run gdb in the temporary directory created when you run the test first...

Hope this helps
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: Elodie09

How to debug Telemac2D 2 years 1 month ago #41257

  • Elodie09
  • Elodie09's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
Hello,
Thanks for your help, it worked by adding the -c option!

Screenshot2022-10-10125339.png
The administrator has disabled public write access.
The following user(s) said Thank You: Andrea

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