<?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: Allocation in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979110#M25655</link>
    <description>The version of Visual Fortran you are using doesn't support ALLOCATABLE functions - that is a Fortran 2000 (draft) feature that was added to version 6.6A.&lt;BR /&gt;&lt;BR /&gt;If you do pointer assignment of the result to a local pointer, you should be able to deallocate it when done.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Tue, 08 Jan 2002 05:05:22 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2002-01-08T05:05:22Z</dc:date>
    <item>
      <title>Allocation</title>
      <link>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979109#M25654</link>
      <description>Usually allocated array will be automatically deallocated by leaving a subroutine. In some cases we are using recursive functions. If the result has the attribute 'allocatable', the compiler complains:  &lt;BR /&gt; &lt;BR /&gt;"Error: The array-spec for a function name with no POINTER attribute must be an explicit shape array (R505.9)" &lt;BR /&gt; &lt;BR /&gt;Compilation succeeds using the attribute 'pointer' for the result (array). One cannot deallocate the array, because it is needed after completion of the function. But now we are facing the problem, that the used memory grows with every calling of the function. How can we free the memory after a function call, so that the stack does not overflow?</description>
      <pubDate>Tue, 08 Jan 2002 04:54:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979109#M25654</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2002-01-08T04:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Allocation</title>
      <link>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979110#M25655</link>
      <description>The version of Visual Fortran you are using doesn't support ALLOCATABLE functions - that is a Fortran 2000 (draft) feature that was added to version 6.6A.&lt;BR /&gt;&lt;BR /&gt;If you do pointer assignment of the result to a local pointer, you should be able to deallocate it when done.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Tue, 08 Jan 2002 05:05:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979110#M25655</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-01-08T05:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Allocation</title>
      <link>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979111#M25656</link>
      <description>Steve,  &lt;BR /&gt;I have same problem with fbucher, on calling of function. I have tried  using allocatable (in CVF 6.6A), but the used memory is bigger then using conventional dimension. &lt;BR /&gt; &lt;BR /&gt;My function as below: &lt;BR /&gt;&lt;PRE&gt;&lt;FONT size="+0"&gt;
  function a_multiply(C, iA, jA, B) result(r_v) 
    ! ... 
    ! ...  argument list 
    ! ... 
    real(kind=kv), intent(in), dimension(:) :: C, B 
    integer, intent(in), dimension(:) :: iA, jA 
    ! ... 
    ! ...  result 
    ! ...  
!    real(kind=kv), dimension(1:size(B)) :: r_v 
    real(kind=kv), allocatable, dimension(:) :: r_v 
    ! ...   
    ! ...  local variables 
    ! ... 
    integer :: i, j 
    !................... 
    allocate(r_v(1:size(B))); r_v = n0 
    ! ... 
    do i = 1, size(B) 
       r_v(i)=C(iA(i))*B(i) 
       do j = iA(i)+1, iA(i+1)-1 
          r_v(i)=r_v(i)+A(j)*B(jA(j)) 
       enddo 
    enddo 
    ! ... 
  end function a_multiply 
&lt;/FONT&gt;&lt;/PRE&gt;&lt;BR /&gt; &lt;BR /&gt;Anyone can help?  &lt;BR /&gt; &lt;BR /&gt;Thank &lt;BR /&gt;toppo</description>
      <pubDate>Mon, 14 Jan 2002 00:26:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979111#M25656</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2002-01-14T00:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Allocation</title>
      <link>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979112#M25657</link>
      <description>toppo,&lt;BR /&gt;&lt;BR /&gt;I don't get any errors with your code.  Since this is just a fragment, I suspect the problem is elsewhere.  Please send a small but complete example with the exact error message, or even better, a ZIP archive of your project, to vf-support@compaq.com and we'll take a look.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Mon, 14 Jan 2002 04:48:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Allocation/m-p/979112#M25657</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2002-01-14T04:48:49Z</dc:date>
    </item>
  </channel>
</rss>

