- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a unformatted data which is write by gfortran (4.1.2). How can read the data using ifort compiler? which option should I use?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On what kind of system was this written? If it is a "little-endian" (x86 or x64) system, then you should not need anything special. If it is a "big-endian" system (SPARC, POWER, etc.), then use -convert big_endian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting Steve Lionel (Intel)
On what kind of system was this written? If it is a "little-endian" (x86 or x64) system, then you should not need anything special. If it is a "big-endian" system (SPARC, POWER, etc.), then use -convert big_endian
The data was written with the gfortran option "-frecord-marker= 8"(by default). I don't know how to make the option with ifort to recognize the data (record marker length is 8).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no option in Intel Fortran to support that mode. gfortran added that only to provide compatibility with g77 which always used 8-byte record lengths on a 64-bit platform. gfortran, some years ago, switched to the system Intel uses with 4-byte lengths for shorter records, expanding to 8-byte only when necessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much for the reply! I have learned much from that.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page