- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all!
This this my first post on the Intel Software Network!
I have an issue using ifort (10.1.015). A simple code read an unformatted file created on an IBM plateform. This is reading and then some results writing on he standart output.
This file is opend using the following statements,
open(10,file=myfile,form='unformatted',access='direct',recl=irecl&
&,convert='big_endian')
The code is compiled using '-assume byterecl' flag.
Unfortunately, the results appear false (including some NaNs!).
But using gfortran, the results are now correct.
Any idea to reproduce the gfortran beahavior with ifort or the unformatted file generatded on the IBM platform is only campatible with gfortran.
Regards,
Ludo
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many IBM platforms are little-endian. Some compilers in use on IBM platforms have different direct access file formats, even when the endian-ness matches what you set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I compiled the gfortran version without any flag.
Version of gfortran is GNU Fortran (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)
cheers,
Ludo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can do an "od -t x4" on the file to examine the record lengths and data layout.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page