0
I compile the fortran files into an executable (sei.exe) using the following command.
gfortran -g -fno-align-commons -c Creat2.for Bessel.for Kei.for
gfortran -g -fno-align-commons *.o D12e.for -o sei.exe
I then use gdb debugger by typing
gdb sei
Then I type the following to run it with the text file input
run < input.inp
It starts running but then just hangs.
I type Ctrl-C to interrupt it, and then it gives me the following result Error
Line 408 is where it is at when I interrupt it, which is the line
READ (*,20) TITLE
Here is the code surrounding that line
DO 1665 I=1, MAXTIT
READ (*,20) TITLE
IF (LEN_TRIM(TITLE) .EQ. 0)GOTO 1664
READ (TITLE,FMT=30,ERR=1664)DUMY1, DUMY2, DUMY3, DUMY4,
1 DUMY5, DUMY6, DUMY7, DUMY8
Any ideas how to stop it hanging, and make it debug with the file input? Thanks