<?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 Floating invalid when &amp;quot;dble&amp;quot;ing a real function in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744345#M2825</link>
    <description>I just switched from v9.1 of ifort to v10 (specifically 10.0.025) and found that a code that has, for a long time, run just fine when compiled with v9.1 crashed when compiled with v10. I was getting a floating invalid error in a simple line which summed various quantities. The line in question was:&lt;BR /&gt;&lt;BR /&gt; mcold_tot=mcold_tot+dble(Galaxy_Cold_Mass(This_Galaxy))&lt;BR /&gt;&lt;BR /&gt;where Galaxy_Cold_Mass() is a real function which simply sums a couple of the elements of the derived type variable This_Galaxy.&lt;BR /&gt;&lt;BR /&gt;If I switch (in this line and similar lines) to doing:&lt;BR /&gt;&lt;BR /&gt;   Cold_Mass=Galaxy_Cold_Mass(This_Galaxy)&lt;BR /&gt;
 mcold_tot=mcold_tot+dble(Cold_Mass)&lt;BR /&gt;&lt;BR /&gt;where Cold_Mass is a real, then it works just fine again.&lt;BR /&gt;&lt;BR /&gt;My question is, is putting a real valued function inside of a dble() invalid Fortran, or could this be a bug in the compiler?&lt;BR /&gt;
&lt;BR /&gt;I can post more information if needed.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help you can offer!&lt;BR /&gt;-Andrew&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;Intel Fortran Compiler for applications running on Intel 64, Version 10.0 Build 20070613 Package ID: l_fc_c_10.0.025&lt;BR /&gt;Copyright (C) 1985-2007 Intel Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;Kernel: 2.6.9-55.ELsmp&lt;BR /&gt;&lt;BR /&gt;Red Hat Enterprise Linux 4&lt;BR /&gt;&lt;BR /&gt;gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Jul 2007 16:11:08 GMT</pubDate>
    <dc:creator>abenson</dc:creator>
    <dc:date>2007-07-12T16:11:08Z</dc:date>
    <item>
      <title>Floating invalid when "dble"ing a real function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744345#M2825</link>
      <description>I just switched from v9.1 of ifort to v10 (specifically 10.0.025) and found that a code that has, for a long time, run just fine when compiled with v9.1 crashed when compiled with v10. I was getting a floating invalid error in a simple line which summed various quantities. The line in question was:&lt;BR /&gt;&lt;BR /&gt; mcold_tot=mcold_tot+dble(Galaxy_Cold_Mass(This_Galaxy))&lt;BR /&gt;&lt;BR /&gt;where Galaxy_Cold_Mass() is a real function which simply sums a couple of the elements of the derived type variable This_Galaxy.&lt;BR /&gt;&lt;BR /&gt;If I switch (in this line and similar lines) to doing:&lt;BR /&gt;&lt;BR /&gt;   Cold_Mass=Galaxy_Cold_Mass(This_Galaxy)&lt;BR /&gt;
 mcold_tot=mcold_tot+dble(Cold_Mass)&lt;BR /&gt;&lt;BR /&gt;where Cold_Mass is a real, then it works just fine again.&lt;BR /&gt;&lt;BR /&gt;My question is, is putting a real valued function inside of a dble() invalid Fortran, or could this be a bug in the compiler?&lt;BR /&gt;
&lt;BR /&gt;I can post more information if needed.&lt;BR /&gt;&lt;BR /&gt;Thanks for any help you can offer!&lt;BR /&gt;-Andrew&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;&lt;BR /&gt;Intel Fortran Compiler for applications running on Intel 64, Version 10.0 Build 20070613 Package ID: l_fc_c_10.0.025&lt;BR /&gt;Copyright (C) 1985-2007 Intel Corporation. All rights reserved.&lt;BR /&gt;&lt;BR /&gt;x86_64 GNU/Linux&lt;BR /&gt;&lt;BR /&gt;Kernel: 2.6.9-55.ELsmp&lt;BR /&gt;&lt;BR /&gt;Red Hat Enterprise Linux 4&lt;BR /&gt;&lt;BR /&gt;gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2007 16:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744345#M2825</guid>
      <dc:creator>abenson</dc:creator>
      <dc:date>2007-07-12T16:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Floating invalid when "dble"ing a real function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744346#M2826</link>
      <description>No, that's a valid use. What is the declaration of Galaxy_Cold_Mass in the caller and in the routine itself?&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2007 17:20:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744346#M2826</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-07-12T17:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Floating invalid when "dble"ing a real function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744347#M2827</link>
      <description>Galaxy_Cold_Mass() is as follows:&lt;BR /&gt;&lt;BR /&gt; pure real function Galaxy_Cold_Mass(This_Galaxy)&lt;BR /&gt; !% Return the total cold mass of the specified galaxy.&lt;BR /&gt; implicit none&lt;BR /&gt; type (Galaxy), pointer :: This_Galaxy&lt;BR /&gt;&lt;BR /&gt; Galaxy_Cold_Mass=This_Galaxy%mcold+This_Galaxy%mcold_ongoing_bursts&lt;BR /&gt; end function Galaxy_Cold_Mass&lt;BR /&gt;&lt;BR /&gt;It's defined within a module, so is made available to the caller via a "use" statement.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;-Andrew.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2007 17:42:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744347#M2827</guid>
      <dc:creator>abenson</dc:creator>
      <dc:date>2007-07-12T17:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Floating invalid when "dble"ing a real function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744348#M2828</link>
      <description>In that case, please submit an issue to Intel Premier Support and attach a complete test case.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2007 18:07:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744348#M2828</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-07-12T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Floating invalid when "dble"ing a real function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744349#M2829</link>
      <description>OK - if I can find a self-contained test case that reproduces this I'll submit an issue.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Andrew.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jul 2007 19:09:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Floating-invalid-when-quot-dble-quot-ing-a-real-function/m-p/744349#M2829</guid>
      <dc:creator>abenson</dc:creator>
      <dc:date>2007-07-12T19:09:25Z</dc:date>
    </item>
  </channel>
</rss>

