<?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 Please post complete example in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938947#M89480</link>
    <description>&lt;P&gt;Please post complete example source code. I don't know where to look for error messages by a numeric code (#7836), nor do I have the older version (11.0) that you mentioned; therefore, please post the text of the error message.&lt;/P&gt;
&lt;P&gt;It appears that you are passing a scalar (sig) where the function declaration calls for a 2-D array.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Feb 2013 20:33:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2013-02-09T20:33:00Z</dc:date>
    <item>
      <title>error #7836 with Intel Compiler</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938946#M89479</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;
&lt;P&gt;I am using Intel(R)64, version 11.1.067 version.I continously encountered error # 7836 while compiling a FORTRAN code. From the debug report, I see that the problem is in the following part of the code:&lt;/P&gt;
&lt;P&gt;INTEGER, PARAMETER :: nz=2, n=10&lt;BR /&gt;REAL, DIMENSION(1,nz) :: z&lt;BR /&gt;REAL:: sig, vsig&lt;BR /&gt;REAL, DIMENSION(1,n) :: pri&lt;BR /&gt;.....&lt;BR /&gt;.....&lt;/P&gt;
&lt;P&gt;pri(1:1,2:2)=norf(z(1,2),sig,vsig,nz/2)&lt;/P&gt;
&lt;P&gt;.....&lt;BR /&gt;.....&lt;/P&gt;
&lt;P&gt;CONTAINS&lt;/P&gt;
&lt;P&gt;FUNCTION norf(x,mu,sigma,dim)&lt;BR /&gt; &lt;BR /&gt; INTEGER, INTENT(IN):: dim&lt;BR /&gt; INTEGER :: i&lt;BR /&gt; REAL, DIMENSION(1,dim) :: x, mu, sigma, norf&lt;BR /&gt; REAL, PARAMETER :: pi=3.14&lt;BR /&gt; do i=1,dim&lt;BR /&gt; norf(1,i)=1/(sigma(1,i)*sqrt(2*pi))*exp(-(x(1,i)-mu(1,i))**2/(2*sigma(1,i)**2))&lt;BR /&gt; end do&lt;BR /&gt;END FUNCTION norf&lt;/P&gt;
&lt;P&gt;Please Please help!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2013 17:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938946#M89479</guid>
      <dc:creator>Tuki_W_</dc:creator>
      <dc:date>2013-02-09T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Please post complete example</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938947#M89480</link>
      <description>&lt;P&gt;Please post complete example source code. I don't know where to look for error messages by a numeric code (#7836), nor do I have the older version (11.0) that you mentioned; therefore, please post the text of the error message.&lt;/P&gt;
&lt;P&gt;It appears that you are passing a scalar (sig) where the function declaration calls for a 2-D array.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2013 20:33:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938947#M89480</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-02-09T20:33:00Z</dc:date>
    </item>
    <item>
      <title>Tip: To look up an Intel</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938948#M89481</link>
      <description>&lt;P&gt;Tip: To look up an Intel Fortran diagnostic by number, type:&lt;/P&gt;
&lt;P&gt;fdiagnnnn&lt;/P&gt;
&lt;P&gt;where nnnn is the number, into the search box at the upper right. Indeed, this error is&amp;nbsp;http://software.intel.com/en-us/articles/fdiag7836 as mecej4 suggested. The standard generally prohibits passing a scalar to an array, except in certain circumstances. You probably got away with it before because it's an error most compilers don't diagnose by default in the absence of an explicit interface.. Intel Fortran does when generated interface checking is enabled.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;An easy workaround is to surround the scalar arguments with [], turning them into array constructors. This works as long as you don't try to store to the argument.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2013 01:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938948#M89481</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2013-02-10T01:24:00Z</dc:date>
    </item>
    <item>
      <title>It works! Thanks Steve</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938949#M89482</link>
      <description>&lt;P&gt;It works!&amp;nbsp;Thanks Steve&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2013 08:49:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-7836-with-Intel-Compiler/m-p/938949#M89482</guid>
      <dc:creator>Tuki_W_</dc:creator>
      <dc:date>2013-02-11T08:49:14Z</dc:date>
    </item>
  </channel>
</rss>

