<?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 Hi Danny, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142706#M137670</link>
    <description>&lt;P&gt;Hi Danny,&lt;/P&gt;

&lt;P&gt;I encountered a lot of similar errors on using Fortran-2003 features (e.g. polymorphic types) with openMP in the past. In your code, the problem seems to be related to the "mesh" -type. Maybe it helps if you provided the declaration of that object?&lt;/P&gt;

&lt;P&gt;I tested the following code and it worked fine (Ubuntu 14.0.4, ifort 17.0.4, openMP 3.0 11/2015, compiled with -qopenmp -fpp):&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program p
	type :: mesh_type
		integer :: no_active_elem = 10
	end type
	type(mesh_type) :: mesh

	integer, parameter :: dp = kind(0d0)
	real(kind=dp), allocatable, dimension(:) :: fiss_den

	integer :: elem_no
	integer :: no_nod_elem

	print *, _OPENMP

	!$OMP PARALLEL DO &amp;amp;
	!$OMP&amp;amp; DEFAULT(none) &amp;amp;
	!$OMP&amp;amp; SHARED(mesh) &amp;amp;
	!$OMP&amp;amp; PRIVATE(no_nod_elem,fiss_den)
	
	do elem_no=1,mesh%no_active_elem

	  no_nod_elem = 5

	  allocate(fiss_den(no_nod_elem)) ! X

	  deallocate(fiss_den)

	enddo

	!$OMP END PARALLEL DO

end program&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Ferdinand&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 10:27:04 GMT</pubDate>
    <dc:creator>Ferdinand_T_</dc:creator>
    <dc:date>2017-10-18T10:27:04Z</dc:date>
    <item>
      <title>Issue with loop for allocatable array in private (openmp)</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142705#M137669</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Dear community,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;​I am encountering a&amp;nbsp;&lt;/SPAN&gt;weird problem involving OpenMP.&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;This simple code snippet&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: elem_no&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: no_nod_elem&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(52, 188, 38);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;real&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #000000"&gt;(dp), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;allocatable&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #000000"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;dimension&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #000000"&gt;(:) :: fiss_den&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;!$OMP PARALLEL DO &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;!$OMP&amp;amp; DEFAULT(none) &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;!$OMP&amp;amp; SHARED(mesh) &amp;amp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;!$OMP&amp;amp; PRIVATE(no_nod_elem,fiss_den)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; elem_no&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #c33720"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;,mesh%no_active_elem&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; no_nod_elem &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #c33720"&gt;5&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;allocate&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(fiss_den(no_nod_elem)) ! X&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; fiss_den &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #c33720"&gt;0.0_dp&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;deallocate&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(fiss_den)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(205, 121, 35);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;enddo&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;!$OMP END PARALLEL DO&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(82, 48, 225);"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;fails with the message that fiss_den is already allocated (on line marked X).&lt;/P&gt;

&lt;P&gt;Mesh is a complex data_type with the entry no_active_elem an integer. If I replace mesh%no_active_elem by some new integer variable that was set to the correct value, then it does work (at least running on single thread). So something fishy going on. Are there any restrictions I am not aware of?&lt;/P&gt;

&lt;P&gt;Any ideas why this would happen? I have seen similar questions posted before, but I believe these issues were fixed in previous versions (I am using 17.0.4 on linux).&lt;/P&gt;

&lt;P&gt;Thanks for any pointers you might have.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Danny.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:38:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142705#M137669</guid>
      <dc:creator>Danny_L_</dc:creator>
      <dc:date>2017-10-17T11:38:19Z</dc:date>
    </item>
    <item>
      <title>Hi Danny,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142706#M137670</link>
      <description>&lt;P&gt;Hi Danny,&lt;/P&gt;

&lt;P&gt;I encountered a lot of similar errors on using Fortran-2003 features (e.g. polymorphic types) with openMP in the past. In your code, the problem seems to be related to the "mesh" -type. Maybe it helps if you provided the declaration of that object?&lt;/P&gt;

&lt;P&gt;I tested the following code and it worked fine (Ubuntu 14.0.4, ifort 17.0.4, openMP 3.0 11/2015, compiled with -qopenmp -fpp):&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program p
	type :: mesh_type
		integer :: no_active_elem = 10
	end type
	type(mesh_type) :: mesh

	integer, parameter :: dp = kind(0d0)
	real(kind=dp), allocatable, dimension(:) :: fiss_den

	integer :: elem_no
	integer :: no_nod_elem

	print *, _OPENMP

	!$OMP PARALLEL DO &amp;amp;
	!$OMP&amp;amp; DEFAULT(none) &amp;amp;
	!$OMP&amp;amp; SHARED(mesh) &amp;amp;
	!$OMP&amp;amp; PRIVATE(no_nod_elem,fiss_den)
	
	do elem_no=1,mesh%no_active_elem

	  no_nod_elem = 5

	  allocate(fiss_den(no_nod_elem)) ! X

	  deallocate(fiss_den)

	enddo

	!$OMP END PARALLEL DO

end program&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Ferdinand&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:27:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142706#M137670</guid>
      <dc:creator>Ferdinand_T_</dc:creator>
      <dc:date>2017-10-18T10:27:04Z</dc:date>
    </item>
    <item>
      <title>Hello Ferdinand,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142707#M137671</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Hello Ferdinand,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Yes indeed it seems to come from the mesh variable. I can use the workaround I mentioned by first copying into another integer variable but I'd rather have it working as is.&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;Here is the mesh declaration for completeness.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; fem_mesh&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: dimen&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: no_vertices&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: no_elem&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: no_active_elem&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;integer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: old_no_active_elem&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;&amp;nbsp; &amp;nbsp; logical&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;allocatable&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;dimension&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(:) :: list_of_elems_tobe_refined&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(elem_id), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;allocatable&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;dimension&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(:) :: active_elem_list&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(elem_id), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;allocatable&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;dimension&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(:) :: elem_list&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(elem_id), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;allocatable&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;dimension&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(:) :: old_active_elem_list&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(elem_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: elem_list_head &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(elem_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: elem_list_ptr &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(face_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: face_list_head &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(face_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: face_list_ptr &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0); min-height: 13px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(vertex_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: vertex_list_head &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(vertex_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: vertex_list_tail &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;(vertex_list), &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;pointer&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; :: vertex_list_ptr &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #cd7923"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #33bbc8"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;()&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures; color: #34bc26"&gt;end type&lt;/SPAN&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt; fem_mesh&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;I will see if I can reconstruct a self-contained example that actually uses mesh which is of type fem_mesh.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-bottom: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"&gt;&lt;SPAN style="font-variant-ligatures: no-common-ligatures"&gt;Danny.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 11:13:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142707#M137671</guid>
      <dc:creator>Danny_L_</dc:creator>
      <dc:date>2017-10-18T11:13:44Z</dc:date>
    </item>
    <item>
      <title>Note that currently supported</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142708#M137672</link>
      <description>&lt;P&gt;Note that currently supported ifort linux releases are 17.0.5 and 18.0.&amp;nbsp; I'm trying to find my way around the updated ism schemes.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:05:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142708#M137672</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2017-10-18T15:05:07Z</dc:date>
    </item>
    <item>
      <title>Make the unallocated array</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142709#M137673</link>
      <description>&lt;P&gt;Make the unallocated array FIRSTPRIVATE, not PRIVATE. First private copies in the current state of the private variable/array ... including an unallocated array descriptor.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 16:33:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142709#M137673</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-10-18T16:33:32Z</dc:date>
    </item>
    <item>
      <title>Thank you all for your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142710#M137674</link>
      <description>&lt;P&gt;Thank you all for your comments. They are much appreciated !&lt;/P&gt;

&lt;P&gt;The FIRSTPRIVATE construct did it. Not sure if I find it all logical, but I will not forget this construct when I encounter this again. &amp;nbsp;Still am puzzled that the behaviour depends on the way the last index of the loop is written. Apparently internally, there is a slight difference how it is handled.&lt;/P&gt;

&lt;P&gt;Thanks again,&lt;/P&gt;

&lt;P&gt;Danny Lathouwers.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:39:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Issue-with-loop-for-allocatable-array-in-private-openmp/m-p/1142710#M137674</guid>
      <dc:creator>Danny_L_</dc:creator>
      <dc:date>2017-10-18T18:39:21Z</dc:date>
    </item>
  </channel>
</rss>

