Welcome, Guest
Username: Password: Remember me

TOPIC: running or stopping the code at any desirable line of the fortran file

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37585

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

In the manual, it is defined by node numbers. but it was working fine with coordinates too, it's not working only with gdb, I wonder why.
But now when I am not using this file, no errors.

Best Regards.
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37586

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
Maybe you could try with a dot instead of a comma as a decimal separator...

Regards
Christophe
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37588

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

I tried that too, but did not work.
So, now I am running it without using this file.

Best Regards
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37589

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Could you try to uplaod all the required files of your case (in a zip) to let us see if we reproduce the same problem on our side?
Christophe
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37592

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

The zipped file is of size 28 MB. It exceeds the maximum size limit. Can I email you the file? or is there any other way?

Regards
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37593

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
You could give a link to a download place
By the way, the size seems huge, could you detail the files and size?
Christophe
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37596

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

These are all the input files including the temp folder

drive.google.com/drive/folders/1vcm5dUoh...WjT_MNc_?usp=sharing

Thanks.
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37639

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

I set breakpoint at the beginning but when I am trying to step to the next line it says no line information.
I also set the breakpoint at the word "RUNOFF_SCS_CN" as it is in the first line of the runoff_scs_cn.f file, it says "Function "RUNOFF_SCS_CN" not defined."
Is the runoff_scs_cn.f file not the source file through which the whole simulation is running and in which I am trying to set the breakpoints?
Why can't I step through the code? The error screen is attached, can anyone please help me what is the problem.

Thanks in advance!
Attachments:
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37640

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
You should study the use of gdb as it's not easy.
I'm not specialist but you could use n (next) instead os s (step into)
This avoid to enter in some subroutines which are not interesting

Don't break at the beginning, due to some windows function this is complex to understand

Put a breakpoint at the entry of the subroutine or function with the full name of the function in lower caps with the extenfion .f and with :1 to indicate the first line...
As it depends on the path parameters, maybe you have to give the full path to the subroutine if it's not in your user fortran

Hope this helps
Christophe
The administrator has disabled public write access.

running or stopping the code at any desirable line of the fortran file 3 years 10 months ago #37641

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

Thanks for the suggestions. I tried both s and n for stepping further but it's saying the same thing. I tried to set breakpoints at many words from the runoff_scs_cn.f file, for example bief, every time it says 'function _ not defined'.

The User fortran folder contains 4 file runoff_scs_cn.f, runoff_scs_cn.o, user_nomvar_telemac2d.f, user_nomvar_telemac2d.o as you can see in the temp folder in the link I provided previously for all the folder and files I am using.

I also want to know about my second question: Is the runoff_scs_cn.f file the source file through which the whole simulation is controlled and in which I am trying to set the breakpoints? Or is there any other main file working which I am not aware of as I am new to telemac2d?

Best Regards
The administrator has disabled public write access.
Moderators: pham

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