<?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 calling function in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/calling-function/m-p/802715#M38537</link>
    <description>haw to call a function without an assigning a returning value?
&lt;BR /&gt;
&lt;BR /&gt;following code works at Compaq:
&lt;BR /&gt;
&lt;BR /&gt;program TestProgram
&lt;BR /&gt;
&lt;BR /&gt;    call testFunction()
&lt;BR /&gt;
&lt;BR /&gt;    contains
&lt;BR /&gt;    
&lt;BR /&gt;    integer function testFunction()
&lt;BR /&gt;        testFunction = 13
&lt;BR /&gt;    end function testFunction
&lt;BR /&gt;
&lt;BR /&gt;end program TestProgram
&lt;BR /&gt;
&lt;BR /&gt;but Intel compiller returns the error:
&lt;BR /&gt;Test.F90(4):  Error: The CALL statement is invoking a function subprogram as a subroutine.   [TESTFUNCTION]</description>
    <pubDate>Thu, 07 Sep 2006 20:10:52 GMT</pubDate>
    <dc:creator>buchos</dc:creator>
    <dc:date>2006-09-07T20:10:52Z</dc:date>
    <item>
      <title>calling function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/calling-function/m-p/802715#M38537</link>
      <description>haw to call a function without an assigning a returning value?
&lt;BR /&gt;
&lt;BR /&gt;following code works at Compaq:
&lt;BR /&gt;
&lt;BR /&gt;program TestProgram
&lt;BR /&gt;
&lt;BR /&gt;    call testFunction()
&lt;BR /&gt;
&lt;BR /&gt;    contains
&lt;BR /&gt;    
&lt;BR /&gt;    integer function testFunction()
&lt;BR /&gt;        testFunction = 13
&lt;BR /&gt;    end function testFunction
&lt;BR /&gt;
&lt;BR /&gt;end program TestProgram
&lt;BR /&gt;
&lt;BR /&gt;but Intel compiller returns the error:
&lt;BR /&gt;Test.F90(4):  Error: The CALL statement is invoking a function subprogram as a subroutine.   [TESTFUNCTION]</description>
      <pubDate>Thu, 07 Sep 2006 20:10:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/calling-function/m-p/802715#M38537</guid>
      <dc:creator>buchos</dc:creator>
      <dc:date>2006-09-07T20:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: calling function</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/calling-function/m-p/802716#M38538</link>
      <description>You fix the error in your code and reference it as a function. The cases where it was "safe" to CALL a function were too few so we simply disallowed this. Assign the value to a throwaway variable.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2006 20:27:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/calling-function/m-p/802716#M38538</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2006-09-07T20:27:18Z</dc:date>
    </item>
  </channel>
</rss>

