Welcome, Guest
Username: Password: Remember me

TOPIC: debugger step by step/ systel.cfg

debugger step by step/ systel.cfg 11 years 9 months ago #7505

  • Flo64
  • Flo64's Avatar
Hi,

My run with tomawac v6p2 fails. Apparently, it fails when it calls semimp.f.
I put the keyword "DEBUGGER = 1" in my steering file and i can see when my run fails.

Also i want to know where is the error. I want to execute tomawac with a debugger in order to make my run step by step. I use totalview.

I put the PATH of totalview in my .bashrc. I think that it's in systel.cfg that i must change something to execute tomawac with this debugger.

I change these lines:
cmd_obj: gfortran -c -g -O3 -ffixed-line-length-132 -fconvert=big-endian - frecord-marker=4 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: mpif90 -g -fconvert=big-endian -frecord-marker=4 -lpthread -v -lm -o <exename> <objs> -Wl,--start-group <libs> -Wl,--end-group

In the first line (cmd_obj) i put '-g' between -c and -03 : '-g' activate the debugger

I change this other line:
mpi_cmdexec: /usr/bin/mpiexec -wdir <wdir> -n - 1 -tv --host nemo <exename>
where i put the term '-tv' in order to say it to open my debugger totalview during the run. But i obtain an error thanks to this 'tv'.

Where can i say in the executable to open my debugger??


Thanks for your help
Florian
The administrator has disabled public write access.

debugger step by step/ systel.cfg 11 years 9 months ago #7512

  • Flo64
  • Flo64's Avatar
To run the debugger, i find a solution. You must put the term -tv (or the abreviation of your debugger) after the ncsize.

But the debugger doesn't give me the read of the subroutines. Where is the 'executable' which allows to read the steering file and the fortran file during a simulation?

Thanks

Florian
The administrator has disabled public write access.

debugger step by step/ systel.cfg 11 years 9 months ago #7574

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi Florian,

The steering file is read with the damocles module the subroutine called is damocles.

There is no executable reading the fortran file it is compiled at the beginning of the run to generate the executable that is in the temporary folder.

Hope that helps,
Yoann
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.

debugger step by step/ systel.cfg 11 years 9 months ago #7576

  • Flo64
  • Flo64's Avatar
Yoann,

Thanks for your help.
I put a debugger on the executable file which is generated in the temporary folder. I find why my run fails but i don't know how i can correct my error. i have a problem during the interpolation of my wind file. My domains is in UTM32S et my wind file in Latitude longitude. Also the run fails when it calls fasp.f. I try different solutions but without success.

Regards

Florian
The administrator has disabled public write access.
Moderators: tfouquet

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