<?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 Because of the EXIT statement in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920664#M85405</link>
    <description>&lt;P&gt;Because of the EXIT statement in the DO loop, the loop is executed only once, with m = 1. If the comparison yields .FALSE., after the loop is exited the variable I will retain whatever value it had before the loop was entered.&lt;/P&gt;
&lt;P&gt;Perhaps you mean to write, instead:&lt;/P&gt;
[fortran]
if (l2 == d(ntemp,m)) then
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l = m
   &amp;nbsp;&amp;nbsp;&amp;nbsp; exit
   endif
[/fortran]</description>
    <pubDate>Thu, 04 Apr 2013 18:13:19 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2013-04-04T18:13:19Z</dc:date>
    <item>
      <title>bug or not in fortran compiler under linux 64 bits ?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920663#M85404</link>
      <description>&lt;P&gt;the two forms below don't give the same result :&lt;/P&gt;
&lt;P&gt;464 !&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do m = 1,3&lt;BR /&gt;465 !&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (l2 == d(ntemp,m)) l = m&lt;BR /&gt;466 !&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit&lt;BR /&gt;467 !&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end do&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;468&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (l2 == d(ntemp,1)) l = 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;469&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (l2 == d(ntemp,2)) l = 2&lt;BR /&gt;470&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (l2 == d(ntemp,3)) l = 3&lt;BR /&gt;in the first case I get l = 2 and 3 (correct answer) in the second. (naturly the "!" character is switched as needed !)&lt;/P&gt;
&lt;P&gt;What is wrong ? (compiler 2013.3.163)&lt;/P&gt;
&lt;P&gt;DAELIII&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2013 17:33:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920663#M85404</guid>
      <dc:creator>Yves_Limoge</dc:creator>
      <dc:date>2013-04-04T17:33:56Z</dc:date>
    </item>
    <item>
      <title>Because of the EXIT statement</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920664#M85405</link>
      <description>&lt;P&gt;Because of the EXIT statement in the DO loop, the loop is executed only once, with m = 1. If the comparison yields .FALSE., after the loop is exited the variable I will retain whatever value it had before the loop was entered.&lt;/P&gt;
&lt;P&gt;Perhaps you mean to write, instead:&lt;/P&gt;
[fortran]
if (l2 == d(ntemp,m)) then
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l = m
   &amp;nbsp;&amp;nbsp;&amp;nbsp; exit
   endif
[/fortran]</description>
      <pubDate>Thu, 04 Apr 2013 18:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920664#M85405</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-04-04T18:13:19Z</dc:date>
    </item>
    <item>
      <title>What are the values of l, l2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920665#M85406</link>
      <description>&lt;P&gt;In addition to exit issue previously discussed.&lt;/P&gt;
&lt;P&gt;What are the values of l, l2 and d(ntemp,1:3) prior to entering code section given?&lt;/P&gt;
&lt;P&gt;As the code is written, it is unknown to the reader as to if any of the if tests result in .true.&lt;BR /&gt;IOW l passes through the filter unchanged.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2013 18:17:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920665#M85406</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-04-04T18:17:00Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt;Indeed the exit has to be</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920666#M85407</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;Indeed the exit has to be included in the if branch&lt;/P&gt;
&lt;P&gt;Doing so would not produce equivalent results (e.g. when all three in line if tests result in .true.)&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2013 18:36:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/bug-or-not-in-fortran-compiler-under-linux-64-bits/m-p/920666#M85407</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2013-04-04T18:36:07Z</dc:date>
    </item>
  </channel>
</rss>

