<?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 Dear all, Dear Steve, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102565#M127085</link>
    <description>&lt;P&gt;Dear all, Dear Steve,&lt;/P&gt;

&lt;P&gt;Thanks a lot, but what is the difference between&lt;/P&gt;

&lt;P&gt;VECTOR(:) or VECTOR?&lt;/P&gt;

&lt;P&gt;Just to better understand&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 15:41:30 GMT</pubDate>
    <dc:creator>diedro</dc:creator>
    <dc:date>2016-10-05T15:41:30Z</dc:date>
    <item>
      <title>deallocate type variable only one field</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102563#M127083</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I have the following type variable:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;  TYPE::tMACROCELLNODE
   INTEGER                                        :: nElem
   INTEGER                                        :: AA
   INTEGER                                        :: IDnode
   INTEGER                                        :: IDmCell
   REAL(KIND=8),ALLOCATABLE,DIMENSION(:)          :: WFX
   REAL(KIND=8),ALLOCATABLE,DIMENSION(:)          :: WFY
   !
   REAL(KIND=8),ALLOCATABLE,DIMENSION(:)          :: WFtime
   REAL(KIND=8),ALLOCATABLE,DIMENSION(:)          :: WFpdf
   !
   REAL                                           :: qs
  ENDTYPE&lt;/PRE&gt;

&lt;P&gt;During my program, I allocate it as:&lt;/P&gt;

&lt;P&gt;first of all:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;ALLOCATE(MACROCELLNODE(npairs))&lt;/PRE&gt;

&lt;P&gt;and then&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;DO i.....

       ALLOCATE(MACROCELLNODE(i)%WFX(n))
...
...&lt;/PRE&gt;

&lt;P&gt;My question is:&lt;/P&gt;

&lt;P&gt;Is it possible deallocate only one field of it?&lt;/P&gt;

&lt;P&gt;for example:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;i=10
DEALLOCATE(MACRCELLNODE(i)%WFX(:))&lt;/PRE&gt;

&lt;P&gt;Thank to all of you&lt;/P&gt;

&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:25:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102563#M127083</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2016-10-05T15:25:17Z</dc:date>
    </item>
    <item>
      <title>Yes, you can do that. You can</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102564#M127084</link>
      <description>&lt;P&gt;Yes, you can do that. You can also deallocate the entire array and each of the components will be deallocated as necessary.&lt;/P&gt;

&lt;P&gt;You have the syntax a bit wrong in the DEALLOCATE, though - no (:) at the end.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:36:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102564#M127084</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-10-05T15:36:50Z</dc:date>
    </item>
    <item>
      <title>Dear all, Dear Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102565#M127085</link>
      <description>&lt;P&gt;Dear all, Dear Steve,&lt;/P&gt;

&lt;P&gt;Thanks a lot, but what is the difference between&lt;/P&gt;

&lt;P&gt;VECTOR(:) or VECTOR?&lt;/P&gt;

&lt;P&gt;Just to better understand&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 15:41:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102565#M127085</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2016-10-05T15:41:30Z</dc:date>
    </item>
    <item>
      <title>When you allocate an array,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102566#M127086</link>
      <description>&lt;P&gt;When you allocate an array, you have to specify the extent of the array. When you deallocate, however, you do not specify a range of indices. You may deallocate only the entire array, and not chosen portions of it. Therefore, writing (:) in the deallocation statement would be superfluous, and the language rules do not let you write that qualifier.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 18:02:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/deallocate-type-variable-only-one-field/m-p/1102566#M127086</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-10-05T18:02:45Z</dc:date>
    </item>
  </channel>
</rss>

