<?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: List-Directed Read gives no error. in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876666#M74083</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;&lt;P&gt;I'll start with my usual advice to never depend on list-directed input to give an error for what YOU think is an error, since it is very forgiving.&lt;/P&gt;&lt;P&gt;That said, I can't reproduce the problem you describe exactly, but I wonder if the "north 10 to 15" line is actually the one causing the problem. If, for example, the first word was "flew", or anything beginning with the letter F, then I would expect a zero to be read, in both CVF and IVF. This is because the compiler provides free conversion between LOGICAL and numeric types in list-directed (and NAMELIST) input. I hate this behavior and have finally convinced the developers to turn it off by default, but that is still a work in progress.&lt;/P&gt;&lt;P&gt;When I try a test program based on what you wrote, "north" gives me a list-directed syntax error, though the word "to" would read happily as -1 (since it is treated as .true.)&lt;/P&gt;&lt;P&gt;Can you show a short but complete program that demonstrates the problem and show what input you give?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2008 13:29:06 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2008-10-01T13:29:06Z</dc:date>
    <item>
      <title>List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876665#M74082</link>
      <description>&lt;P&gt;I migrated from CVF to Intel Fortran. Everything is working but the following:&lt;/P&gt;&lt;P&gt;I read two columns of real numbers and would like to stop the reading (that means to branch to the error specifier) when there is a character string instead of a number on the input file.&lt;/P&gt;&lt;P&gt;The code line is as follows&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;read(nin,*,err=20,end=21)x(nd),y(nd)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;On CVF this is working but the Intel Compiler does not detect an error and translates the character string to the number 0.0.&lt;/P&gt;&lt;P&gt;The input file looks like this:&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;1200. 0. &lt;BR /&gt;1500. 0. &lt;BR /&gt;north 10 to 15&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Are there any compiler options to be changed?&lt;/P&gt;&lt;P&gt;Many thanks for any suggestions.&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2008 09:14:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876665#M74082</guid>
      <dc:creator>Rol_fae</dc:creator>
      <dc:date>2008-10-01T09:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876666#M74083</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;&lt;P&gt;I'll start with my usual advice to never depend on list-directed input to give an error for what YOU think is an error, since it is very forgiving.&lt;/P&gt;&lt;P&gt;That said, I can't reproduce the problem you describe exactly, but I wonder if the "north 10 to 15" line is actually the one causing the problem. If, for example, the first word was "flew", or anything beginning with the letter F, then I would expect a zero to be read, in both CVF and IVF. This is because the compiler provides free conversion between LOGICAL and numeric types in list-directed (and NAMELIST) input. I hate this behavior and have finally convinced the developers to turn it off by default, but that is still a work in progress.&lt;/P&gt;&lt;P&gt;When I try a test program based on what you wrote, "north" gives me a list-directed syntax error, though the word "to" would read happily as -1 (since it is treated as .true.)&lt;/P&gt;&lt;P&gt;Can you show a short but complete program that demonstrates the problem and show what input you give?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2008 13:29:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876666#M74083</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-10-01T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876667#M74084</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;&lt;EM&gt;&lt;P&gt;I'll start with my usual advice to never depend on list-directed input to give an error for what YOU think is an error, since it is very forgiving.&lt;/P&gt;&lt;P&gt;That said, I can't reproduce the problem you describe exactly, but I wonder if the "north 10 to 15" line is actually the one causing the problem. If, for example, the first word was "flew", or anything beginning with the letter F, then I would expect a zero to be read, in both CVF and IVF. This is because the compiler provides free conversion between LOGICAL and numeric types in list-directed (and NAMELIST) input. I hate this behavior and have finally convinced the developers to turn it off by default, but that is still a work in progress.&lt;/P&gt;&lt;P&gt;When I try a test program based on what you wrote, "north" gives me a list-directed syntax error, though the word "to" would read happily as -1 (since it is treated as .true.)&lt;/P&gt;&lt;P&gt;Can you show a short but complete program that demonstrates the problem and show what input you give?&lt;/P&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;many thanks fr your endeavors. Please find a copy of a test code and the corresponding input file in the following:&lt;/P&gt;&lt;P&gt;Test code:&lt;/P&gt;&lt;P&gt;program Console1&lt;BR /&gt;&lt;BR /&gt; real x(10), y(10)&lt;BR /&gt; &lt;BR /&gt; nin=5&lt;BR /&gt; nout=6&lt;BR /&gt; open (unit=nin,file='input.txt',status='unknown')&lt;BR /&gt; open (unit=nout,file='output.txt',status='unknown') &lt;BR /&gt; nd=10&lt;BR /&gt; &lt;BR /&gt; do i=1,nd&lt;BR /&gt; read(nin,*,err=20,end=21)x(nd),y(nd)&lt;BR /&gt; write(nout,'(2f15.4)')x(nd),y(nd)&lt;BR /&gt; enddo&lt;BR /&gt; 20 continue&lt;BR /&gt; write(nout,*)' Error detected at line:',i&lt;BR /&gt; stop&lt;BR /&gt;&lt;BR /&gt; 21 continue&lt;BR /&gt; write(nout,91)i-1&lt;BR /&gt; stop &lt;BR /&gt;91 format(/,' ** End of File **',/,' data number found:',i5)&lt;BR /&gt; end program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input file:&lt;/P&gt;&lt;P&gt;0. 3.&lt;BR /&gt;1000. 12000.&lt;BR /&gt;north 10 to 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With CVF the "error" is detected. That means the following output is produced:&lt;/P&gt;&lt;P&gt;0.0000 3.0000&lt;BR /&gt; 1000.0000 12000.0000&lt;BR /&gt; Error detected at line: 3&lt;/P&gt;&lt;P&gt;With IVF the error-branching does not work and the following output ist produced:&lt;/P&gt;&lt;P&gt;0.0000 3.0000&lt;BR /&gt; 1000.0000 12000.0000&lt;BR /&gt; 0.0000 10.0000&lt;BR /&gt;&lt;BR /&gt; ** End of File **&lt;BR /&gt; data number found: 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2008 11:13:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876667#M74084</guid>
      <dc:creator>Rol_fae</dc:creator>
      <dc:date>2008-10-02T11:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876668#M74085</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;&lt;P&gt;Sure enough - I can reproduce this. I'll report it to the developers. Nevertheless, you should not depend on an error indication from list-directed input.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2008 13:00:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876668#M74085</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-10-02T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876669#M74086</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;&lt;EM&gt;&lt;P&gt;Sure enough - I can reproduce this. I'll report it to the developers. Nevertheless, you should not depend on an error indication from list-directed input.&lt;/P&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Ok, I try to change it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2008 14:07:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876669#M74086</guid>
      <dc:creator>Rol_fae</dc:creator>
      <dc:date>2008-10-02T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876670#M74087</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;This one is very strange. It requires the following:&lt;/P&gt;
&lt;P&gt;1. The "word" at the beginning of the line has to start with the letter I or N.&lt;/P&gt;
&lt;P&gt;2. There needs to be at least a second variable in the I/O list!&lt;/P&gt;
&lt;P&gt;My guess is that this involves the need to recognize the strings NaN and Infinity. I have escalated it to the developers.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2008 21:26:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876670#M74087</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-10-02T21:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: List-Directed Read gives no error.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876671#M74088</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
We have fixed this error and the fix ought to appear in the next update.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jan 2009 18:52:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/List-Directed-Read-gives-no-error/m-p/876671#M74088</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-27T18:52:06Z</dc:date>
    </item>
  </channel>
</rss>

