This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
gfortran namelist read eof error
- From: Sofia Panagiotidi <sp1003 at doc dot ic dot ac dot uk>
- To: fortran at gcc dot gnu dot org
- Date: Thu, 16 Mar 2006 13:26:26 +0000
- Subject: gfortran namelist read eof error
Hello,
I hope I am writing to the correct list. It is about a problem
concerning gfortran from gcc-4.0.2.
I have managed to build an application with gfortran, but it gives a
runtime error when it comes to execution.
The error is the following:
..........
At line 99 of file initialise_genie.F
Fortran runtime error: End of file
Command exited with non-zero status 2
0.00user 0.00system 0:00.04elapsed 10%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+194minor)pagefaults 0swaps
!!!!!!!!!! ERROR PROCESSING !!!!!!!!!!
cp: cannot stat `fort.2': No such file or directory
...........
When I look the code, at that specific line of the specific program,
there is the command:
read(8,genie_control_nml)
which simply reads a name list from the file fort.8.
The file is certainly there and contains all the necessary data. But I
do not know anything about the fort.2.
I have read about a bug (or something similar about the EOF and
namelists) but could not find much info.
Is it the same one in this case? Has it been fixed? Do you have any
suggestions? I would really appreciate your answer.
Thank you very much
Sofia