<?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 Re: EOF handling in IVF vs. DVF in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848467#M65118</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I can think of at least two different things that may be at work here, but without a full test case I'm not sure what it might be. You also don't say which "DVF" you're using.&lt;BR /&gt;&lt;BR /&gt;First, early versions of DVF did not properly handle data files where the last record didn't end in a newline. That was fixed at some point fairly early in the product. Second, and I don't remember when this change was made, an end-of-file condition is not supposed to trigger an ERR= branch, though since you also have END= that may not matter.&lt;BR /&gt;&lt;BR /&gt;Can you show a small but complete program that illustrates the problem?&lt;BR /&gt;&lt;BR /&gt;There is no compiler switch controlling this behavior.&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Oct 2009 16:19:02 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2009-10-12T16:19:02Z</dc:date>
    <item>
      <title>EOF handling in IVF vs. DVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848466#M65117</link>
      <description>I recently converted from DVF to IVF and have had few problems, but here is one that has come up.&lt;BR /&gt;&lt;BR /&gt;I'm reading a series of 8-byte strings from a text file, one string per line in the file. The list ends with an EOF mark (character 26). For example, consider the input file:&lt;BR /&gt;&lt;BR /&gt;XXXXXXXX&lt;BR /&gt;[EOF]&lt;BR /&gt;&lt;BR /&gt;In DVF the following code gives i=1, but in recompiling in IVF I get i=2 and ALIST(2) gets the EOF mark. Is there a compiler switch that will make IVF behave like DVF in this regard?&lt;BR /&gt;&lt;BR /&gt; CHARACTER*8 ALIST(N) ! N is passed from calling routine&lt;BR /&gt; I=0&lt;BR /&gt;1     DO WHILE (I.LE.N-1)&lt;BR /&gt; READ (14,'(A8)',END=2,ERR=3) ALIST(I+1)&lt;BR /&gt; I=I+1&lt;BR /&gt; END DO&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Oct 2009 15:13:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848466#M65117</guid>
      <dc:creator>salbruce</dc:creator>
      <dc:date>2009-10-12T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: EOF handling in IVF vs. DVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848467#M65118</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I can think of at least two different things that may be at work here, but without a full test case I'm not sure what it might be. You also don't say which "DVF" you're using.&lt;BR /&gt;&lt;BR /&gt;First, early versions of DVF did not properly handle data files where the last record didn't end in a newline. That was fixed at some point fairly early in the product. Second, and I don't remember when this change was made, an end-of-file condition is not supposed to trigger an ERR= branch, though since you also have END= that may not matter.&lt;BR /&gt;&lt;BR /&gt;Can you show a small but complete program that illustrates the problem?&lt;BR /&gt;&lt;BR /&gt;There is no compiler switch controlling this behavior.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Oct 2009 16:19:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848467#M65118</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-10-12T16:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: EOF handling in IVF vs. DVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848468#M65119</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;Here is a small complete example (attached, and reproduced below), along with an example input file.&lt;BR /&gt;I was previously using DVF6.&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;I can think of at least two different things that may be at work here, but without a full test case I'm not sure what it might be. You also don't say which "DVF" you're using.&lt;BR /&gt;&lt;BR /&gt;First, early versions of DVF did not properly handle data files where the last record didn't end in a newline. That was fixed at some point fairly early in the product. Second, and I don't remember when this change was made, an end-of-file condition is not supposed to trigger an ERR= branch, though since you also have END= that may not matter.&lt;BR /&gt;&lt;BR /&gt;Can you show a small but complete program that illustrates the problem?&lt;BR /&gt;&lt;BR /&gt;There is no compiler switch controlling this behavior.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Oct 2009 17:01:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848468#M65119</guid>
      <dc:creator>salbruce</dc:creator>
      <dc:date>2009-10-12T17:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: EOF handling in IVF vs. DVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848469#M65120</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Ok, I understand now. Yes, that's an ENDFILE record in there and I can see a difference from CVF. You can get the behavior you want by adding the /vms switch, though this should not, I think, be required. I'll let the developers know about this.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Oct 2009 17:40:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848469#M65120</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-10-12T17:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: EOF handling in IVF vs. DVF</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848470#M65121</link>
      <description>This will be fixed in the next major release, due out late this year.</description>
      <pubDate>Wed, 21 Jul 2010 13:56:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/EOF-handling-in-IVF-vs-DVF/m-p/848470#M65121</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-07-21T13:56:52Z</dc:date>
    </item>
  </channel>
</rss>

