<?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 Declare constant function arguments with specific data type in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Declare-constant-function-arguments-with-specific-data-type/m-p/888135#M77409</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a function with the following interface:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[plain]integer(4), parameter :: real_kind = 8&lt;BR /&gt;subroutine SetZWidS( linkIndex, segmentIndex, value )

  integer(4), intent(in)      ::  linkIndex, segmentIndex
  real(real_kind), intent(in) ::  value

  ...

end subroutine
[/plain]&lt;/PRE&gt;
&lt;BR /&gt; If I want to pass 1.0E30 for value, e.g. &lt;BR /&gt;
&lt;PRE&gt;[cpp]call SetZWidS(link, segement, 1.0E30),[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;I get an error that data types are inconsistent. &lt;BR /&gt;Is there a way to declare the 1.0E30 as double without using dble or real(val, 8)?&lt;BR /&gt;If so, does that work for other numeric data types as well?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;FObermaier&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Nov 2009 09:26:37 GMT</pubDate>
    <dc:creator>fobermaier</dc:creator>
    <dc:date>2009-11-11T09:26:37Z</dc:date>
    <item>
      <title>Declare constant function arguments with specific data type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Declare-constant-function-arguments-with-specific-data-type/m-p/888135#M77409</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a function with the following interface:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[plain]integer(4), parameter :: real_kind = 8&lt;BR /&gt;subroutine SetZWidS( linkIndex, segmentIndex, value )

  integer(4), intent(in)      ::  linkIndex, segmentIndex
  real(real_kind), intent(in) ::  value

  ...

end subroutine
[/plain]&lt;/PRE&gt;
&lt;BR /&gt; If I want to pass 1.0E30 for value, e.g. &lt;BR /&gt;
&lt;PRE&gt;[cpp]call SetZWidS(link, segement, 1.0E30),[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;I get an error that data types are inconsistent. &lt;BR /&gt;Is there a way to declare the 1.0E30 as double without using dble or real(val, 8)?&lt;BR /&gt;If so, does that work for other numeric data types as well?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;FObermaier&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Nov 2009 09:26:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Declare-constant-function-arguments-with-specific-data-type/m-p/888135#M77409</guid>
      <dc:creator>fobermaier</dc:creator>
      <dc:date>2009-11-11T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Declare constant function arguments with specific data type</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Declare-constant-function-arguments-with-specific-data-type/m-p/888136#M77410</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;You could use 1.0e30_8 or 1.0e30_real_kind if real_kind is visible in the calling routine (advisable)&lt;BR /&gt;&lt;BR /&gt;Les</description>
      <pubDate>Wed, 11 Nov 2009 11:16:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Declare-constant-function-arguments-with-specific-data-type/m-p/888136#M77410</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2009-11-11T11:16:51Z</dc:date>
    </item>
  </channel>
</rss>

