forrtl: severe (24): end-of-file during read & forrtl: severe (67): input statement requires too much data

forrtl: severe (24): end-of-file during read & forrtl: severe (67): input statement requires too much data

Hello!

I have to run the program written in fortran. The program reads data from the file which contains information with a lot of arrays. I got this problem during reading of the data, defined it with "traceback" option . I tried to use different types of format in the source code but without success. I use Intel Fortran 10.1.015 on Linux (Suse 10) laptop and Intel Xeon server. The same errors are on both computers.

1) Binary form:
OPEN (UNIT=4,FILE=FILBCK,FORM='binary')

hpcstriz@cn30:~/cfd/cavity> ./caffa3d.MB.lnx

ENTER PROBLEM NAME (SIX CHARACTERS):

post03

forrtl: severe (24): end-of-file during read, unit 4, file /mnt/storage/home/strizhak/cfd/cavity/post03.bck

Image PC Routine Line Source

caffa3d.MB.lnx 00000000004AE40A Unknown Unknown Unknown

caffa3d.MB.lnx 00000000004AD60A Unknown Unknown Unknown

caffa3d.MB.lnx 000000000046D27A Unknown Unknown Unknown

caffa3d.MB.lnx 0000000000438369 Unknown Unknown Unknown

caffa3d.MB.lnx 0000000000437C56 Unknown Unknown Unknown

caffa3d.MB.lnx 000000000044DFED Unknown Unknown Unknown

caffa3d.MB.lnx 000000000042D618 Unknown Unknown Unknown

caffa3d.MB.lnx 0000000000431377 Unknown Unknown Unknown

caffa3d.MB.lnx 0000000000403454 Unknown Unknown Unknown

caffa3d.MB.lnx 0000000000402F62 Unknown Unknown Unknown

libc.so.6 00002B373713C154 Unknown Unknown Unknown

caffa3d.MB.lnx 0000000000402EA9 Unknown Unknown Unknown

2) Unformatted form

OPEN (UNIT=4,FILE=FILBCK,FORM='unformatted')

hpcstriz@hpc-suvir1:~/cfd/cavity> ./caffa3d.MB.7.0312.lnx

ENTER PROBLEM NAME (SIX CHARACTERS):

post03

forrtl: severe (67): input statement requires too much data, unit 4, file /mnt/storage/home/strizhak/cfd/cavity/post03.bck

Image PC Routine Line Source

caffa3d.MB.7.0312 00000000004AE40A Unknown Unknown Unknown

caffa3d.MB.7.0312 00000000004AD60A Unknown Unknown Unknown

caffa3d.MB.7.0312 000000000046D27A Unknown Unknown Unknown

caffa3d.MB.7.0312 0000000000438369 Unknown Unknown Unknown

caffa3d.MB.7.0312 0000000000437C56 Unknown Unknown Unknown

caffa3d.MB.7.0312 000000000044E0D7 Unknown Unknown Unknown

caffa3d.MB.7.0312 000000000044C32D Unknown Unknown Unknown

caffa3d.MB.7.0312 000000000042D5B2 Unknown Unknown Unknown

caffa3d.MB.7.0312 0000000000431377 Unknown Unknown Unknown

caffa3d.MB.7.0312 0000000000403454 Unknown Unknown Unknown

caffa3d.MB.7.0312 0000000000402F62 Unknown Unknown Unknown

libc.so.6 00002B8CA7EE6154 Unknown Unknown Unknown

caffa3d.MB.7.0312 0000000000402EA9 Unknown Unknown Unknown

hpcstriz@hpc-suvir1:~/cfd/cavity> od -t x4 post03.bck|head

0000000 0000003c 00000002 00000019 0000002e

0000020 0000002e 000033a9 00000000 00000000

0000040 00000000 00000999 000001b9 00000001

0000060 00000001 00000001 00000999 000001b9

0000100 0000003c 0000015c 00000000 00000017

0000120 0000002e 00000045 0000005c 00000073

0000140 0000008a 000000a1 000000b8 000000cf

0000160 000000e6 00000000 00000017 0000002e

0000200 00000045 0000005c 00000073 0000008a

0000220 000000a1 000000b8 000000cf 000000e6

Please, help.

Thanks in advance,

Sergei

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

The stream read was introduced in Fortran to support reading binary files written by programs compiled by other compilers. 'binary' was an earlier attempt to go in that direction. If a file is written 'unformatted' by one Fortran system, you will have to pay attention to hidden details to read it on another.
You may be able to decipher those hidden details with od, but only with the advantage of additional information which would likely to be to cumbersome to communicate here.

Leave a Comment

Please sign in to add a comment. Not a member? Join today