<?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: Passing argument of real*4 to a function where argument req in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873859#M73114</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;No. Fortran requires that arguments match in type, kind and rank. Use of DBLE is certainly one approach, and perhaps the most reasonable. If the called function writes back to the argument, however, you'll want another solution, such as assigning to a variable of the matching type and then passing that.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Jan 2009 15:19:58 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2009-01-04T15:19:58Z</dc:date>
    <item>
      <title>Passing argument of real*4 to a function where argument required in real *8</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873858#M73113</link>
      <description>&lt;P&gt;I am trying to call a function f1(a). by using&lt;/P&gt;
&lt;P&gt;CALL F1(A)&lt;/P&gt;
&lt;P&gt;In this functionA is a REAL *4&lt;/P&gt;
&lt;P&gt;where as in F1 Function argument required is REAL*8&lt;/P&gt;
&lt;P&gt;When A goes into F1 it is showing as some null data.&lt;/P&gt;
&lt;P&gt;Currently I am calling F1(A) as F1(DBLE(A)). which is solving the problem.&lt;/P&gt;
&lt;P&gt;Is there any setting that I need to make it passed with out using DBLE function.&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;BR /&gt;Chandra.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2009 11:44:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873858#M73113</guid>
      <dc:creator>acobulareddy</dc:creator>
      <dc:date>2009-01-04T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing argument of real*4 to a function where argument req</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873859#M73114</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;No. Fortran requires that arguments match in type, kind and rank. Use of DBLE is certainly one approach, and perhaps the most reasonable. If the called function writes back to the argument, however, you'll want another solution, such as assigning to a variable of the matching type and then passing that.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2009 15:19:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873859#M73114</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-01-04T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing argument of real*4 to a function where argument req</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873860#M73115</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/407518"&gt;acobulareddy&lt;/A&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;Currently I am calling F1(A) as F1(DBLE(A)).&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;You have chosena normal f77 way of doing this. If you mean, is there a way to emulate platforms of 35 years ago where you could pass a single precision value to a double precision argument with a relativeerror of about 1e-6 (taking a big risk in the case where the value is modified), the answer is no.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2009 15:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873860#M73115</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-01-04T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing argument of real*4 to a function where argument req</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873861#M73116</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/407518"&gt;acobulareddy&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 am trying to call a function f1(a). by using&lt;/P&gt;
&lt;P&gt;CALL F1(A)&lt;/P&gt;
&lt;P&gt;In this functionA is a REAL *4&lt;/P&gt;
&lt;P&gt;where as in F1 Function argument required is REAL*8&lt;/P&gt;
&lt;P&gt;When A goes into F1 it is showing as some null data.&lt;/P&gt;
&lt;P&gt;Currently I am calling F1(A) as F1(DBLE(A)). which is solving the problem.&lt;/P&gt;
&lt;P&gt;Is there any setting that I need to make it passed with out using DBLE function.&lt;/P&gt;
&lt;P&gt;Thanks for your help&lt;BR /&gt;Chandra.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;You can do this using generic interface. You would create a generic interface for F1 and then two specific interfaces such ason as F1_single and F1_double where one accepts the single precision argument and the other accepts the double precision argument. The IVFdocumentation illustrates how do do this.&lt;/P&gt;
&lt;P&gt;Jim Dempsey&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jan 2009 15:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Passing-argument-of-real-4-to-a-function-where-argument-required/m-p/873861#M73116</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2009-01-04T15:42:54Z</dc:date>
    </item>
  </channel>
</rss>

