Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29352 Discussions

Failure in Fortran Open for Binary Files

gerd-paul_hoffmannt-
1,194 Views
Open statements in Fortran applications are compiled correctly but leads in execution to an unrecoverable failure.
0 Kudos
3 Replies
ArturGuzik
Valued Contributor I
1,194 Views
Open statements in Fortran applications are compiled correctly but leads in execution to an unrecoverable failure.
Hi,

A bit more info is required, I'm afraid. What's the error message?

A.
0 Kudos
Les_Neilson
Valued Contributor II
1,194 Views
Open statements in Fortran applications are compiled correctly but leads in execution to an unrecoverable failure.

Are the files you are reading created on a different system ?
Example code together with the error message(s) would also help.

Les
0 Kudos
jparsly1
New Contributor I
1,194 Views
As others as said, we'd need to see more to be much help. The following are just guesses:

If you are opening binary direct access files, check your record lengths. The default for CVF/IVF is to measure
in WORDS instead of BYTES. This behavior is changeable through compiler options.

If you are reading binary files created on other systems (or even with different compilers on the same system),
there can be all sorts of problems. Some of these (like "endianness") can be addressed with options in the
OPEN statements. On the other hard, if the files are unformatted (and not direct access), there's no standard
layout for this type of file, and you may find it difficult to read files created with another compiler or on a different
operating system.

In any case, add some more specific info on what is going wrong, and we may be able to point you in the
right direction.



0 Kudos
Reply