I am trying to run some old fortran f77 codes. I somehow managed to compile and got the executable. But when I run the executable I am getting the following error.
fmt: end of file
apparent state: unit 14 named sol2
last format: (3i10)
lately reading sequential formatted external IO
Aborted (core dumped)
I looked online for similar errors, and most of the solutions are pointing towards FORMAT statement and edit descriptors.
So I gone through all the source files and figured out the exact location and file where I have the 3i10 descriptor statement.
Below is the portion where I have 3i10 descriptor followed by few lines of code. Sorry I can't put the whole code since its very long. But, in the whole code this is the only place where I have 3i10 descriptor.
SUBROUTINE READ(UNIT_LOC, NCOMP_LOC,
& NSP_LOC,
& NP_LOC)
IMPLICIT NONE
INCLUDE '../SOURCES_COUNTERFLOW/unsteadyf_inc.h'
INTEGER UNIT_LOC, NCOMP_LOC, NSP_LOC, NP_LOC
OPEN (UNIT=UNIT_LOC,FORM='FORMATTED',FILE=NAME_LOC)
READ(UNIT_LOC,100) NCOMP_LOC, NSP_LOC, NP_LOC
100 FORMAT(3I10)
1004 format(100(1PE13.5,1X))
By reading online solutions, I tried changing the FORMAT to FORMAT(' ',3I10)``FORMAT(3I10.8) but no luck.
Any help is appreciated.