<?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 Problems with pointer / structures in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844803#M62772</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;I'm really confused with what's happening here. I have a main program using a module:&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;
&lt;P&gt;dum.for:&lt;BR /&gt; program stest&lt;BR /&gt; use dum&lt;BR /&gt; implicit none&lt;BR /&gt; integer i&lt;/P&gt;
&lt;P&gt; nFluids = 2&lt;BR /&gt; allocate(nTemps(2))&lt;BR /&gt; nTemps(1) = 3&lt;BR /&gt; nTemps(2) = 4&lt;/P&gt;
&lt;P&gt; allocate(Fluids(nFluids))&lt;BR /&gt; do i = 1, nFluids&lt;BR /&gt; allocate(Fluids(i)%DataPoints(nTemps(i)))&lt;BR /&gt; enddo&lt;BR /&gt; Fluids(1)%DataPoints(1) = 1&lt;BR /&gt; Fluids(1)%DataPoints(2) = 2&lt;BR /&gt; Fluids(1)%DataPoints(3) = 3&lt;/P&gt;
&lt;P&gt; end&lt;/P&gt;
&lt;P&gt;and dum_mod.for:&lt;BR /&gt; module dum&lt;/P&gt;
&lt;P&gt; integer :: nFluids&lt;BR /&gt; integer, pointer :: nTemps(:) =&amp;gt; null()&lt;/P&gt;
&lt;P&gt; type FluidType&lt;BR /&gt; sequence&lt;BR /&gt; integer, pointer :: DataPoints(:) =&amp;gt; null()&lt;BR /&gt; end type FluidType&lt;/P&gt;
&lt;P&gt; type(FluidType), pointer :: Fluids(:) =&amp;gt; null()&lt;/P&gt;
&lt;P&gt; end module&lt;/P&gt;
&lt;P&gt;So I have 2 fluids, the first has 3 datapoints, the second should have 4 datapoints. When I run these in the debugger, just after the allocation of the Fluids array (before the do loop), if I open up Fluids in the watch window, and then open Fluids(1) and Fluids(2), it already shows 2 datapoint entries for each fluid. Firstly, it shouldn't show any entries there yet, since I haven't allocated the datapoint arrays yet. Secondly, after allocating them it still shows 2 and 2, but there are supposed to be 3 and 4 respectively. Why?&lt;/P&gt;
&lt;P&gt;And then, later on when I try to assign values to the datapoints, the first gets its value of 1, but the second doesn't get its value of 2, and of course the 3rd isn't shown.&lt;/P&gt;
&lt;P&gt;What's going on here? I upgraded to v28, but still have the problem.&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2005 01:25:41 GMT</pubDate>
    <dc:creator>ferrad</dc:creator>
    <dc:date>2005-12-22T01:25:41Z</dc:date>
    <item>
      <title>Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844803#M62772</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;I'm really confused with what's happening here. I have a main program using a module:&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;
&lt;P&gt;dum.for:&lt;BR /&gt; program stest&lt;BR /&gt; use dum&lt;BR /&gt; implicit none&lt;BR /&gt; integer i&lt;/P&gt;
&lt;P&gt; nFluids = 2&lt;BR /&gt; allocate(nTemps(2))&lt;BR /&gt; nTemps(1) = 3&lt;BR /&gt; nTemps(2) = 4&lt;/P&gt;
&lt;P&gt; allocate(Fluids(nFluids))&lt;BR /&gt; do i = 1, nFluids&lt;BR /&gt; allocate(Fluids(i)%DataPoints(nTemps(i)))&lt;BR /&gt; enddo&lt;BR /&gt; Fluids(1)%DataPoints(1) = 1&lt;BR /&gt; Fluids(1)%DataPoints(2) = 2&lt;BR /&gt; Fluids(1)%DataPoints(3) = 3&lt;/P&gt;
&lt;P&gt; end&lt;/P&gt;
&lt;P&gt;and dum_mod.for:&lt;BR /&gt; module dum&lt;/P&gt;
&lt;P&gt; integer :: nFluids&lt;BR /&gt; integer, pointer :: nTemps(:) =&amp;gt; null()&lt;/P&gt;
&lt;P&gt; type FluidType&lt;BR /&gt; sequence&lt;BR /&gt; integer, pointer :: DataPoints(:) =&amp;gt; null()&lt;BR /&gt; end type FluidType&lt;/P&gt;
&lt;P&gt; type(FluidType), pointer :: Fluids(:) =&amp;gt; null()&lt;/P&gt;
&lt;P&gt; end module&lt;/P&gt;
&lt;P&gt;So I have 2 fluids, the first has 3 datapoints, the second should have 4 datapoints. When I run these in the debugger, just after the allocation of the Fluids array (before the do loop), if I open up Fluids in the watch window, and then open Fluids(1) and Fluids(2), it already shows 2 datapoint entries for each fluid. Firstly, it shouldn't show any entries there yet, since I haven't allocated the datapoint arrays yet. Secondly, after allocating them it still shows 2 and 2, but there are supposed to be 3 and 4 respectively. Why?&lt;/P&gt;
&lt;P&gt;And then, later on when I try to assign values to the datapoints, the first gets its value of 1, but the second doesn't get its value of 2, and of course the 3rd isn't shown.&lt;/P&gt;
&lt;P&gt;What's going on here? I upgraded to v28, but still have the problem.&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2005 01:25:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844803#M62772</guid>
      <dc:creator>ferrad</dc:creator>
      <dc:date>2005-12-22T01:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844804#M62773</link>
      <description>&lt;P&gt;Those smiley faces should be ( : )&lt;/P&gt;
&lt;P&gt;bracket colon bracket&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2005 01:26:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844804#M62773</guid>
      <dc:creator>ferrad</dc:creator>
      <dc:date>2005-12-22T01:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844805#M62774</link>
      <description>Use the Code button (IE) or &lt;PRE&gt; tags to format code here.&lt;BR /&gt;&lt;BR /&gt;I know there have been some issues looking at allocatable arrays in the debugger that are being worked on.  I've seen a problem similar to this before.&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Dec 2005 02:04:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844805#M62774</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-22T02:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844806#M62775</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;
&lt;P&gt;You're not very specific about my problem... I have a real problem now in that I cannot look at these allocatable arrays in the debugger. You don't say whether this is a bug in the debugger or whether I'm doing something wrong.&lt;/P&gt;
&lt;P&gt;I am starting a new project and wouldlike use F90 constructs, however if I can't see them in the debugger, that pretty much makes them useless to me, and so I have to go back to F77. Alternatively I have to scrap Intel and go back to CVF.&lt;/P&gt;
&lt;P&gt;These are both very big decisions, and I'd appreciate some guidance / workarounds.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Adrian&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2005 02:11:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844806#M62775</guid>
      <dc:creator>ferrad</dc:creator>
      <dc:date>2005-12-22T02:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844807#M62776</link>
      <description>It's a bug and it's being worked on.  You're not doing anything wrong that I can see.  I'd recommend that you submit this to Intel Premier Support to make sure it gets the proper attention.</description>
      <pubDate>Thu, 22 Dec 2005 02:34:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844807#M62776</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-22T02:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844808#M62777</link>
      <description>&lt;DIV&gt;Thanks, I have submitted to Premier Support. Any idea of how long this will take to fix?&lt;/DIV&gt;
&lt;DIV&gt;Adrian&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2005 03:18:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844808#M62777</guid>
      <dc:creator>ferrad</dc:creator>
      <dc:date>2005-12-22T03:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844809#M62778</link>
      <description>Sorry, I don't.</description>
      <pubDate>Thu, 22 Dec 2005 04:09:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844809#M62778</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-22T04:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844810#M62779</link>
      <description>&lt;P&gt;Something similar, which I have pointed out before...&lt;/P&gt;
&lt;P&gt;Isn't there anyone out there but me that misses the capability of the Array Viewer to display arrays with pointer attributes declared in a derived type, like the ones in this example? It works fine in the CVF Array Viewer.&lt;/P&gt;
&lt;P&gt;Maybe, it's in the pipeline?&lt;/P&gt;
&lt;P&gt;Lars&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2005 20:23:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844810#M62779</guid>
      <dc:creator>larsm</dc:creator>
      <dc:date>2005-12-22T20:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with pointer / structures</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844811#M62780</link>
      <description>I'd be surprised if it didn't.  I suggest you ask over in the Array Visualizer forum, though I know that John Readey is on vacation for a few weeks.</description>
      <pubDate>Thu, 22 Dec 2005 21:41:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-with-pointer-structures/m-p/844811#M62780</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2005-12-22T21:41:15Z</dc:date>
    </item>
  </channel>
</rss>

