<?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: debug vs release in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Re-debug-vs-release/m-p/986613#M27284</link>
    <description>The following have helpt me to elliminate differences between debug and release results, and may help you too: &lt;BR /&gt;1- Use IMPLICIT NONE and declare all of your variables; &lt;BR /&gt;2- Initialize all variables, especially arrays; &lt;BR /&gt;3- Do not mix up REAL with REAL*8 and INTEGER in the same calculation; &lt;BR /&gt;4- Do use D (for double precision) with your constants if you declare the variables as double precision (e.g. X=0D0, Y=1D0 rather than X=0, Y=1 -- if X and Y are REAL*8); &lt;BR /&gt;5- Be carefull with logical results of such comparisons as IF(X-Y == 0D0) THEN... This may behave different for debug vs release if X and Y are calculated values; &lt;BR /&gt;6- Read Dave Eklunds 'The Perils of Real Numbers' in CVF Newsletter issues 8, 9 and 10. &lt;BR /&gt; &lt;BR /&gt;Regards, &lt;BR /&gt;Sabalan.</description>
    <pubDate>Tue, 19 Mar 2002 20:49:39 GMT</pubDate>
    <dc:creator>sabalan</dc:creator>
    <dc:date>2002-03-19T20:49:39Z</dc:date>
    <item>
      <title>Re: debug vs release</title>
      <link>https://community.intel.com/t5/Software-Archive/Re-debug-vs-release/m-p/986613#M27284</link>
      <description>The following have helpt me to elliminate differences between debug and release results, and may help you too: &lt;BR /&gt;1- Use IMPLICIT NONE and declare all of your variables; &lt;BR /&gt;2- Initialize all variables, especially arrays; &lt;BR /&gt;3- Do not mix up REAL with REAL*8 and INTEGER in the same calculation; &lt;BR /&gt;4- Do use D (for double precision) with your constants if you declare the variables as double precision (e.g. X=0D0, Y=1D0 rather than X=0, Y=1 -- if X and Y are REAL*8); &lt;BR /&gt;5- Be carefull with logical results of such comparisons as IF(X-Y == 0D0) THEN... This may behave different for debug vs release if X and Y are calculated values; &lt;BR /&gt;6- Read Dave Eklunds 'The Perils of Real Numbers' in CVF Newsletter issues 8, 9 and 10. &lt;BR /&gt; &lt;BR /&gt;Regards, &lt;BR /&gt;Sabalan.</description>
      <pubDate>Tue, 19 Mar 2002 20:49:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Re-debug-vs-release/m-p/986613#M27284</guid>
      <dc:creator>sabalan</dc:creator>
      <dc:date>2002-03-19T20:49:39Z</dc:date>
    </item>
  </channel>
</rss>

