<?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: IFC 7.1 vs. CVF 6.5 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835342#M54684</link>
    <description>Here is an arcive of code and input data file.&lt;BR /&gt;Thanx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;OnkelHotte wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;When you provide "some code" it would be very helpful for us...&lt;/DIV&gt;&lt;P&gt;Message Edited by OnkelHotte on &lt;SPAN class="date_text"&gt;06-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:35 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 09 Jun 2005 20:20:01 GMT</pubDate>
    <dc:creator>hazlett</dc:creator>
    <dc:date>2005-06-09T20:20:01Z</dc:date>
    <item>
      <title>IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835340#M54682</link>
      <description>I have some code that runs fine when compiled by IFC, yet blows up when compiled by CVF.&lt;BR /&gt;I get about three iterations, fluctuating result to larger and larger numbers, positive and negative, and then it goes off to -Infinity and then NaN.&lt;BR /&gt;I suspect floating point error, but can't track it down.&lt;BR /&gt;Any ideas?</description>
      <pubDate>Wed, 08 Jun 2005 00:19:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835340#M54682</guid>
      <dc:creator>hazlett</dc:creator>
      <dc:date>2005-06-08T00:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835341#M54683</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;When you provide "some code" it would be very helpful for us...&lt;/DIV&gt;&lt;P&gt;Message Edited by OnkelHotte on &lt;SPAN class="date_text"&gt;06-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:35 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2005 19:35:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835341#M54683</guid>
      <dc:creator>onkelhotte</dc:creator>
      <dc:date>2005-06-09T19:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835342#M54684</link>
      <description>Here is an arcive of code and input data file.&lt;BR /&gt;Thanx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;OnkelHotte wrote:&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;When you provide "some code" it would be very helpful for us...&lt;/DIV&gt;&lt;P&gt;Message Edited by OnkelHotte on &lt;SPAN class="date_text"&gt;06-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;05:35 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 09 Jun 2005 20:20:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835342#M54684</guid>
      <dc:creator>hazlett</dc:creator>
      <dc:date>2005-06-09T20:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835343#M54685</link>
      <description>Your code builds fine with CVF 6.6C and Intel Fortran 8.1.  You didn't say what the error messages were when compiled with CVF 6.5.  I will note that CVF 6.5 is 4-5 years old at this point.</description>
      <pubDate>Thu, 09 Jun 2005 20:41:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835343#M54685</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T20:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835344#M54686</link>
      <description>It blows up in runtime for me, producing NaN output in the final set of output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;sblionel wrote:&lt;BR /&gt;Your code builds fine with CVF 6.6C and Intel Fortran 8.1.  You didn't say what the error messages were when compiled with CVF 6.5.  I will note that CVF 6.5 is 4-5 years old at this point.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jun 2005 20:48:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835344#M54686</guid>
      <dc:creator>hazlett</dc:creator>
      <dc:date>2005-06-09T20:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835345#M54687</link>
      <description>Ah - ok. &lt;BR /&gt;&lt;BR /&gt;You have at least one coding error - perhaps more.  You're missing a comma in the next to last line of:&lt;BR /&gt;&lt;BR /&gt;      real(8)  :: pi,dtmp,mass,oldmass,D,N,diff,psum,oldpsum,frict,&lt;BR /&gt;     /            p1,p2,p3,L1,L2,L3,FBAR,f1,f2,f3,P0,time,dt,Tshift,&lt;BR /&gt;     /            perm,S,Qdot1,Qdot2,Qdot3,newmass,springmass,Q0&lt;BR /&gt;     /            ,localflowsum,sum,sumhead,xm,ym,viscosity,&lt;BR /&gt;     /            Rconduit,omega,Tchar,permeability,porosity,RA&lt;BR /&gt;     /            ,headC1,headC2,headC3,dheadE&lt;BR /&gt;     /            Allocation1,Allocation2,Allocation3,sumAlloc&lt;BR /&gt;&lt;BR /&gt;Compile with /warn:declarations and look at the warnings you get.  The program goes further if I fix this one error above.</description>
      <pubDate>Thu, 09 Jun 2005 21:23:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835345#M54687</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T21:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835346#M54688</link>
      <description>I fixed all of the warnings and the code does go farther than before.&lt;BR /&gt;Any ideas why the solution diverges?&lt;BR /&gt;As I mentioned, it runs just fine on IFC 7.1.</description>
      <pubDate>Thu, 09 Jun 2005 22:05:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835346#M54688</guid>
      <dc:creator>hazlett</dc:creator>
      <dc:date>2005-06-09T22:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835347#M54689</link>
      <description>I would have to follow the calculations to see what changes. Looking at the code briefly, it does seem the sort that is very sensitive to  small differences in calculations which could be introduced by different sequences of instructions or changes to math libraries.&lt;BR /&gt;&lt;BR /&gt;What I usually do in these situations is add code to dump to a file the intermediate values per iteration and compare runs with the two compilers and see where things start to diverge.</description>
      <pubDate>Thu, 09 Jun 2005 22:52:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835347#M54689</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-06-09T22:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835348#M54690</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Adding IMPLICIT NONE to the main program and the subroutines throws up several variables that have not been defined. Some of them are REAL and I think these will default to single precision. If you require double precision throughout, then this could affect your answers. &lt;/DIV&gt;
&lt;DIV&gt;Variable LC, beginning with 'L' will default to integer, I think! Also, I would have expected that NT should be specified as INTEGER before being used in the DIMENSION statement in the subroutines.HEre is the compiler output (CVF 6.6c)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: black 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; BORDER-LEFT: black 1px solid; PADDING-TOP: 10px; BORDER-BOTTOM: black 1px solid"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;PRE&gt;Transient.f
Transient.f(441) : Error: This name does not have a type, and must have an explicit type.   [AREAMASS]
 areamass = sum(area*R)
--------^
Transient.f(551) : Error: This name does not have a type, and must have an explicit type.   [LC]
        LC=1.0e+2             ! m
--------^
Transient.f(559) : Error: This name does not have a type, and must have an explicit type.   [TEMPSUM]
        tempsum=0
--------^
Transient.f(630) : Error: This name does not have a type, and must have an explicit type.   [ALLOCATION1]
           Allocation1=permeability/Tchar*(headE(jt,ie)-headC1)
-----------^
Transient.f(636) : Error: This name does not have a type, and must have an explicit type.   [DHEADE]
           dheadE=dt/porosity*Recharge(jt)
-----------^
Transient.f(672) : Error: This name does not have a type, and must have an explicit type.   [NT]
   real(8), DIMENSION(NT)::CSb,CSe
^
Transient.f(672) : Error: A specification expression is invalid.   [NT]
   real(8), DIMENSION(NT)::CSb,CSe
^
Transient.f(688) : Error: This name does not have a type, and must have an explicit type.   [NT]
       real (8), DIMENSION(NT)::CS
---------------------------^
Transient.f(688) : Error: A specification expression is invalid.   [NT]
       real (8), DIMENSION(NT)::CS
---------------------------^
Error executing df.exe.

Transient.obj - 9 error(s), 0 warning(s)
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Try putting these right, and use 1.0D+00 etc. if you want double precision real constants. HTH&lt;/DIV&gt;&lt;P&gt;Message Edited by anthonyrichards on &lt;SPAN class="date_text"&gt;06-09-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:54 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2005 23:48:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835348#M54690</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2005-06-09T23:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835349#M54691</link>
      <description>I made all of the changes you all have suggested so far.&lt;BR /&gt;The solution goes further, but still blows up.&lt;BR /&gt;An updated code is attached.</description>
      <pubDate>Fri, 10 Jun 2005 00:45:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835349#M54691</guid>
      <dc:creator>hazlett</dc:creator>
      <dc:date>2005-06-10T00:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: IFC 7.1 vs. CVF 6.5</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835350#M54692</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I think you should ensure that all your allocated arrays are initialised to zeros (0.0d+00 for reals). You are either dividing by a small number to get your large numbers, or multiplying by a large number (such as -6.277438562204192E+066, which is what the REAL*8 arrays are initialised to in my CVF 6.6C version), or sum of large numbers, so this is a strong possibility.&lt;/DIV&gt;
&lt;DIV&gt;You may be using an array element value that you have not directly changed during your computation. This may have no consequences if it defaults to zero on allocation, but it may find you out on CVF. You should run in debug mode aand set break points to investigate values as they are generated.&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jun 2005 15:08:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/IFC-7-1-vs-CVF-6-5/m-p/835350#M54692</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2005-06-10T15:08:49Z</dc:date>
    </item>
  </channel>
</rss>

