<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Intel® Fortran Compiler의 주제 Re: how to read a binary file written in SGI</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760251#M15738</link>
    <description>With SGI, there are several possibilities. Their Fortran supports either a C compatible sequential form, or Fortran sequential or direct access. I believe all of the binary file formatsare big-endian,same asother Unix platforms, even though the hardware is not.
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 Jun 2004 04:05:14 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2004-06-24T04:05:14Z</dc:date>
    <item>
      <title>how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760250#M15737</link>
      <description>&lt;DIV&gt;I need to read a binary file in LINUX IA64 which was written by a fortran compilerin SGI, anybody knows how to reada binary file in linux ia64transferred from SGI? THANKS.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2004 03:53:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760250#M15737</guid>
      <dc:creator>cyq858</dc:creator>
      <dc:date>2004-06-24T03:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760251#M15738</link>
      <description>With SGI, there are several possibilities. Their Fortran supports either a C compatible sequential form, or Fortran sequential or direct access. I believe all of the binary file formatsare big-endian,same asother Unix platforms, even though the hardware is not.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2004 04:05:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760251#M15738</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-06-24T04:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760252#M15739</link>
      <description>&lt;P&gt;thanks, but I am still confused. eg. I write a real*8 variable in a binary file using fortran in SGI, how can I read it correctly using fortran in linux ia64? thanks.in In SGI, &lt;/P&gt;
&lt;P&gt;u=1.2d-5&lt;/P&gt;
&lt;P&gt;open(1,FILE=filename,FORM='UNFORAMTTED',ACTION='WRITE')&lt;/P&gt;
&lt;P&gt;write(1) u&lt;/P&gt;
&lt;P&gt;And then in Linux IA64,&lt;/P&gt;
&lt;P&gt;open(1,FILE=filename,FORM='BINARY',ACTIONON='READ')&lt;/P&gt;
&lt;P&gt;read(1) u&lt;/P&gt;
&lt;P&gt;.but I can not get the value correctly, what is the problem?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2004 04:16:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760252#M15739</guid>
      <dc:creator>cyq858</dc:creator>
      <dc:date>2004-06-24T04:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760253#M15740</link>
      <description>If SGI machines are indeed big endian (I don't know), then&lt;BR /&gt;compile your code on the ia64 box with '-convert big_endian'.&lt;BR /&gt;This will tell the compiler to read/write the files as&lt;BR /&gt;big_endian instead of the the default little_endian.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Thu, 24 Jun 2004 05:08:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760253#M15740</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-06-24T05:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760254#M15741</link>
      <description>&lt;DIV&gt;'BINARY' is a non-standard Fortran format which is more compatible with C. If you want to use that on the Intel side, you should use the equivalent on the SGI side (not standard Fortran unformatted). It may be called 'binary' there too; my memory isn't that good. You still have to reverse the byte order within each data item. There are options in Intel Fortran to open the file as a big-endian file, which should do the job.&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2004 05:12:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760254#M15741</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-06-24T05:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760255#M15742</link>
      <description>I think Craig has the right idea. You can now use CONVERT='BIG_ENDIAN' in OPEN as well. This will properly interpret the record lengths and do the byte swap of integer and real data. The caveat is that you have to list the variables directly in the I/O list - you can't use a record or derived type.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2004 20:27:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760255#M15742</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-06-24T20:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a binary file written in SGI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760256#M15743</link>
      <description>&lt;P&gt;Yes, after I add CONVERT='BIG_ENDIAN', it works. thank you, guys, this is the first time I ask questions in this forum, and I really appreciate your help. &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2004 21:33:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/how-to-read-a-binary-file-written-in-SGI/m-p/760256#M15743</guid>
      <dc:creator>cyq858</dc:creator>
      <dc:date>2004-06-24T21:33:18Z</dc:date>
    </item>
  </channel>
</rss>

