<?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: adjustable array as a formal parameter in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/adjustable-array-as-a-formal-parameter/m-p/743093#M2002</link>
    <description>That's not an adjustable array (where you would pass the bound as a separate parameterr and declare it in the subroutine as a(n)), it's an assumed-shape array and an explicit interface is required to be visible to the caller. If you make sub a "contained" procedure of the main program, that would do it, otherwise sub needs to be in a module or you have to write an INTERFACE block.</description>
    <pubDate>Fri, 02 Feb 2007 23:49:55 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2007-02-02T23:49:55Z</dc:date>
    <item>
      <title>adjustable array as a formal parameter</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/adjustable-array-as-a-formal-parameter/m-p/743092#M2001</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to give anarray as a formal parameter to a subroutine in the following way&lt;/P&gt;&lt;P&gt;subroutine sub(b)&lt;BR /&gt;double precision, dimension(:) :: b&lt;BR /&gt;write(*,*) b&lt;BR /&gt;end subroutine sub&lt;/P&gt;&lt;P&gt;program arrayDelivery&lt;BR /&gt;double precision, dimension(3) :: a&lt;BR /&gt;a=987654.321&lt;BR /&gt;call sub(a)&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;Althoughifort compiles the code without any errors,the program does not deliver the correct results. Instead of the values for b it prints only a blank line. I think, that the delivery of the formal parameter is not correct.&lt;/P&gt;&lt;P&gt;Please can anyone explain to me the reason.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;dino&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2007 16:33:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/adjustable-array-as-a-formal-parameter/m-p/743092#M2001</guid>
      <dc:creator>dnoack</dc:creator>
      <dc:date>2007-02-02T16:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: adjustable array as a formal parameter</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/adjustable-array-as-a-formal-parameter/m-p/743093#M2002</link>
      <description>That's not an adjustable array (where you would pass the bound as a separate parameterr and declare it in the subroutine as a(n)), it's an assumed-shape array and an explicit interface is required to be visible to the caller. If you make sub a "contained" procedure of the main program, that would do it, otherwise sub needs to be in a module or you have to write an INTERFACE block.</description>
      <pubDate>Fri, 02 Feb 2007 23:49:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/adjustable-array-as-a-formal-parameter/m-p/743093#M2002</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-02-02T23:49:55Z</dc:date>
    </item>
  </channel>
</rss>

