Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29298 Discussões

Failure in Fortran Open for Binary Files

gerd-paul_hoffmannt-
Principiante
1.075 Visualizações
Open statements in Fortran applications are compiled correctly but leads in execution to an unrecoverable failure.
0 Kudos
3 Respostas
ArturGuzik
Contribuidor valorado I
1.075 Visualizações
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.
Les_Neilson
Contribuidor valorado II
1.075 Visualizações
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
jparsly1
Novo colaborador I
1.075 Visualizações
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.



Responder