<?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 An alternative might be to in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830189#M52040</link>
    <description>&lt;P&gt;An alternative might be to emulate this function using something like:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;logical function eof(unit)
    integer :: unit

    character(len=1) :: onechar
    integer :: ierr

    read( lun, iostat = ierr, '(a)' ) onechar
    eof = ierr /= 0
end function&lt;/PRE&gt;

&lt;P&gt;If there are unformatted files, you will need to extend this. And you may want to distinguish between an error and a "true" end-of-file.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2015 08:27:42 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2015-02-11T08:27:42Z</dc:date>
    <item>
      <title>Intel equivelent of CVF EOF function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830186#M52037</link>
      <description>I'm trying to convert to Intel 7.0 from CVF and noticed that Intel doesn't seem to have a function similar to CVF's EOF function.  The code is looping through a number of files and checks for empty files using the following lines:&lt;BR /&gt;&lt;BR /&gt;REWIND (UNIT = UNITNO (INDEX))&lt;BR /&gt;ENDFIL = EOF (UNITNO (INDEX))&lt;BR /&gt;&lt;BR /&gt;Does Intel 7.0 have a similar function that I just haven't found, or am I going to have to try and read from each file to determine if it is empty?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Tim Coletta</description>
      <pubDate>Sat, 18 Jan 2003 01:54:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830186#M52037</guid>
      <dc:creator>tim_coletta</dc:creator>
      <dc:date>2003-01-18T01:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Intel equivelent of CVF EOF function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830187#M52038</link>
      <description>Intel Fortran doesn't have EOF yet.  You'll have to do the test READ yourself.  (This would also be more portable.)&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 18 Jan 2003 04:28:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830187#M52038</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2003-01-18T04:28:44Z</dc:date>
    </item>
    <item>
      <title>So try to spot all EOF()</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830188#M52039</link>
      <description>&lt;P&gt;So try to spot all EOF() clauses in the CVF environments and convert to test iostat.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:23:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830188#M52039</guid>
      <dc:creator>Xj_Kong</dc:creator>
      <dc:date>2015-02-11T08:23:13Z</dc:date>
    </item>
    <item>
      <title>An alternative might be to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830189#M52040</link>
      <description>&lt;P&gt;An alternative might be to emulate this function using something like:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;logical function eof(unit)
    integer :: unit

    character(len=1) :: onechar
    integer :: ierr

    read( lun, iostat = ierr, '(a)' ) onechar
    eof = ierr /= 0
end function&lt;/PRE&gt;

&lt;P&gt;If there are unformatted files, you will need to extend this. And you may want to distinguish between an error and a "true" end-of-file.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:27:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830189#M52040</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2015-02-11T08:27:42Z</dc:date>
    </item>
    <item>
      <title>Change Line-8 of the code in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830190#M52041</link>
      <description>&lt;P&gt;Change Line-8 of the code in #4 to &lt;STRONG&gt;eof = ierr /= -1&lt;/STRONG&gt; to exclude EOR and other conditions, and note that the specific value dedicated to signify EOF is compiler-dependent, but you can USE ISO_FORTRAN_ENV and use the named constant IOSTAT_END&amp;nbsp;instead.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 10:17:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Intel-equivelent-of-CVF-EOF-function/m-p/830190#M52041</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-02-11T10:17:00Z</dc:date>
    </item>
  </channel>
</rss>

