<?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: array dimensioning in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934379#M15496</link>
    <description>giancarlo,&lt;BR /&gt;&lt;BR /&gt;What operating system are you using?  You may want to consider using ALLOCATABLE arrays rather than automatic arrays.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Fri, 12 Jan 2001 02:26:40 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2001-01-12T02:26:40Z</dc:date>
    <item>
      <title>array dimensioning</title>
      <link>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934376#M15493</link>
      <description>In the following piece of code we tried four ways of dimensioning a simple integer-array. The first two methods (dimensioning by a common-block or a subroutine-argument) cause the error-message: &lt;BR /&gt; &lt;BR /&gt;forrtl: severe (170): Program Exception - stack overflow &lt;BR /&gt; &lt;BR /&gt;..., while the third and fourth way of declaring the bounds of the array work properly - all four ways allocate an array of the same size!  &lt;BR /&gt;Is there an answer to this mystery?? &lt;BR /&gt; &lt;BR /&gt;Code (methods 2-4 not active) &lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;BR /&gt;&lt;PRE&gt; 
program test 
implicit double precision (a-h,o-z) 
common /mtest/ msize 
msize = 259931 
isize = msize 
call subtest(isize) 
end 
 
subroutine subtest(i) 
implicit double precision (a-h,o-z) 
parameter (lsize = 259931) 
common /mtest/ msize 
 
! the following two lines fail during run-time: 
 dimension itestarray(i) 
! dimension itestarray(msize) 
 
! the following two lines don't fail during run-time: 
! dimension itestarray(lsize) 
! dimension itestarray(259931) 
end
&lt;/PRE&gt;&lt;BR /&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 10 Jan 2001 02:51:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934376#M15493</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-01-10T02:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: array dimensioning</title>
      <link>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934377#M15494</link>
      <description>The third and fourth methods allocate the array at fixed addresses at link time, whereas the first and second are "automatic arrays" which get allocated on the stack at run-time.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 10 Jan 2001 02:57:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934377#M15494</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-01-10T02:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: array dimensioning</title>
      <link>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934378#M15495</link>
      <description>Hi &lt;BR /&gt;I have the same problem. It seems that the only way to go around this problem is to expand the stack size. I tried with limit and it is not enough. How can I do this? &lt;BR /&gt; &lt;BR /&gt;thanks &lt;BR /&gt; &lt;BR /&gt;Giancarlo</description>
      <pubDate>Fri, 12 Jan 2001 00:43:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934378#M15495</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-01-12T00:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: array dimensioning</title>
      <link>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934379#M15496</link>
      <description>giancarlo,&lt;BR /&gt;&lt;BR /&gt;What operating system are you using?  You may want to consider using ALLOCATABLE arrays rather than automatic arrays.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 12 Jan 2001 02:26:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/array-dimensioning/m-p/934379#M15496</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-01-12T02:26:40Z</dc:date>
    </item>
  </channel>
</rss>

