<?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>topic ifort 8.0 bug while reading direct unformatted file in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761658#M17145</link>
    <description>&lt;P&gt;I have a piece of code which works for many years before I updated to ifort 8.0. The code is attached below. It seems that ifort has a bug to read direct access unformatted file. I have tested this code with the following fortran compilers:&lt;BR /&gt;&lt;BR /&gt;o ifc version 5.0, 6.0, 7.1 and get "6";&lt;BR /&gt;o pgf90 version 5.1, get "6";&lt;BR /&gt;o g95, get "6";&lt;BR /&gt;o ifort 8.0, get "3"??&lt;BR /&gt;&lt;BR /&gt;How should I avoid this problem with ifort 8.0?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Fortran 90 code attached:&lt;BR /&gt;&lt;BR /&gt;filename ='test.data'&lt;BR /&gt;irow = 357 ! what we want&lt;BR /&gt;icol = 1086&lt;BR /&gt;&lt;BR /&gt;WRITE(0,'(a,a)') ' Opening ',TRIM(filename)&lt;BR /&gt;OPEN (UNIT=lun, FILE=TRIM(filename), ACCESS='DIRECT', &amp;amp;&lt;BR /&gt;FORM='UNFORMATTED', STATUS='OLD', &amp;amp;&lt;BR /&gt;RECL=incol)&lt;BR /&gt;&lt;BR /&gt;READ (lun, REC=irow) (inbuf(i), i=1,incol)&lt;BR /&gt;outarray = ICHAR(inbuf(icol))&lt;BR /&gt;CLOSE (lun)&lt;BR /&gt;&lt;BR /&gt;print *, outarray&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2005 03:22:36 GMT</pubDate>
    <dc:creator>otem234</dc:creator>
    <dc:date>2005-05-20T03:22:36Z</dc:date>
    <item>
      <title>ifort 8.0 bug while reading direct unformatted file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761658#M17145</link>
      <description>&lt;P&gt;I have a piece of code which works for many years before I updated to ifort 8.0. The code is attached below. It seems that ifort has a bug to read direct access unformatted file. I have tested this code with the following fortran compilers:&lt;BR /&gt;&lt;BR /&gt;o ifc version 5.0, 6.0, 7.1 and get "6";&lt;BR /&gt;o pgf90 version 5.1, get "6";&lt;BR /&gt;o g95, get "6";&lt;BR /&gt;o ifort 8.0, get "3"??&lt;BR /&gt;&lt;BR /&gt;How should I avoid this problem with ifort 8.0?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Fortran 90 code attached:&lt;BR /&gt;&lt;BR /&gt;filename ='test.data'&lt;BR /&gt;irow = 357 ! what we want&lt;BR /&gt;icol = 1086&lt;BR /&gt;&lt;BR /&gt;WRITE(0,'(a,a)') ' Opening ',TRIM(filename)&lt;BR /&gt;OPEN (UNIT=lun, FILE=TRIM(filename), ACCESS='DIRECT', &amp;amp;&lt;BR /&gt;FORM='UNFORMATTED', STATUS='OLD', &amp;amp;&lt;BR /&gt;RECL=incol)&lt;BR /&gt;&lt;BR /&gt;READ (lun, REC=irow) (inbuf(i), i=1,incol)&lt;BR /&gt;outarray = ICHAR(inbuf(icol))&lt;BR /&gt;CLOSE (lun)&lt;BR /&gt;&lt;BR /&gt;print *, outarray&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2005 03:22:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761658#M17145</guid>
      <dc:creator>otem234</dc:creator>
      <dc:date>2005-05-20T03:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: ifort 8.0 bug while reading direct unformatted file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761659#M17146</link>
      <description>Are you aware that in Intel Fortran 8.0, the unit of RECL= is in four-byte units, the same as in Compaq Fortran?  Try compiling with &lt;PRE&gt;-assume byterecl&lt;/PRE&gt; and see if that helps.  Since you did not supply the data file in question, I can't try it myself.&lt;BR /&gt;&lt;BR /&gt;I will also note that ifort 8.0 is rather old at this point.  8.1.030 is the current version.&lt;P&gt;Message Edited by sblionel on &lt;SPAN class="date_text"&gt;05-19-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:46 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2005 03:45:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761659#M17146</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-05-20T03:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: ifort 8.0 bug while reading direct unformatted file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761660#M17147</link>
      <description>Hi Steve,&lt;BR /&gt;Thank you very much. '-assume byterecl' does the trick. I do not know record length is in longwords instead of bytes.&lt;BR /&gt;&lt;BR /&gt;Henry.</description>
      <pubDate>Fri, 20 May 2005 04:13:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761660#M17147</guid>
      <dc:creator>otem234</dc:creator>
      <dc:date>2005-05-20T04:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: ifort 8.0 bug while reading direct unformatted file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761661#M17148</link>
      <description>Please read &lt;A href="http://www.intel.com/software/products/compilers/techtopics/MigratingApplicationsfromFromFortran7_1to8_1_WP.pdf" target="_blank"&gt;Migrating Applications from Intel Fortran Compiler 7.1 to Intel Fortran Compiler 8.1&lt;/A&gt;.  Also, please read the compiler release notes.</description>
      <pubDate>Fri, 20 May 2005 04:27:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-8-0-bug-while-reading-direct-unformatted-file/m-p/761661#M17148</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-05-20T04:27:20Z</dc:date>
    </item>
  </channel>
</rss>

