<?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: RESHAPE and order argument in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901537#M80869</link>
    <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Are you using IVF or Compaq Visual Fortran?&lt;BR /&gt;&lt;BR /&gt;Using CVF, Iget the same as you , (1,2,3,4,5,6,7,8) with ORDER = (/2,1,3/) instead of the desired (1,5,3,7,2,4,6,8).&lt;BR /&gt;&lt;BR /&gt;Using ORDER = (/3,2,1/) (i.e. C-ordering) I get Test2=(1,5,3,7,2,6,4,8) as desired.&lt;BR /&gt;&lt;BR /&gt;BUTusing ORDER = (/1,3,2/) I get Test2=(1,1,3,3,2,2,4,4) instead of the desired (1,2,5,6,3,4,7,8)&lt;BR /&gt;&lt;BR /&gt;Using IVF, I get the same as you , (1,2,3,4,5,6,7,8) with ORDER = (/2,1,3/) instead of the desired (1,5,3,7,2,4,6,8).&lt;BR /&gt;&lt;BR /&gt;Using ORDER = (/3,2,1/) (i.e. C-ordering) I get Test2=(1,5,3,7,2,6,4,8) as desired.&lt;BR /&gt;&lt;BR /&gt;BUT using ORDER = (/1,3,2/) I get Test2 =(1,2,5,6,3,4,7,8), as desired.&lt;BR /&gt;&lt;BR /&gt;So it looks like CVF had bugs withRESHAPE,and IVF stillhas RESHAPE bugs, but one less than CVF!&lt;BR /&gt;&lt;BR /&gt;I would guess that most effort was concentrated on getting the C-re-ordering right, at the expense of all others.&lt;BR /&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 20 May 2009 14:55:32 GMT</pubDate>
    <dc:creator>anthonyrichards</dc:creator>
    <dc:date>2009-05-20T14:55:32Z</dc:date>
    <item>
      <title>RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901534#M80866</link>
      <description>TheORDER = (/2,1,3/)argument in the RESHAPE() intrinsic function below does notappear to work or is being ignored.I would like the array GBD_JShift() to look like the layout of the numbers in the code below, but what I am getting is col. 1 is being filledfirst, then col. 2, then col. 3 and so on as ifORDER = (/1,2,3/) is being used.&lt;BR /&gt;&lt;BR /&gt;Any information or comments would be appreciated. Thanks&lt;BR /&gt;
&lt;PRE&gt;[plain]MODULE JShift
! MODULE contains Delta J AVG values for diagonal interpolation

IMPLICIT NONE

! Delta J Avg data is from the following spreadsheet:
! IVF WIN32 SeriesScanned SeriesGawn Burrill"GB Max Kt &amp;amp; Kq shift.xls"
REAL(4), PARAMETER, DIMENSION(6,5,5) :: GBD_JShift = &amp;amp;
     RESHAPE(SOURCE = (/ &amp;amp;       
     !Prop 306 thru 320  BAR = 0.5		
     ! Sig 2.0	Sig 1.5	  Sig 1	   Sig  0.75	Sig 0.5     P/D Range	
       0.105,   0.190,    0.150,   0.130,       0.170, &amp;amp;    ! 0.6 to 0.8	
       0.095,   0.110,    0.210,   0.230,       0.195, &amp;amp;    ! 0.8 to 1.0	    
       0.080,   0.100,    0.115,   0.175,       0.160, &amp;amp;    ! 1.0 to 1.2	
       -1.0,     -1.0,    -1.0,    -1.0,        -1.0,  &amp;amp;    ! 1.2 to 1.4
       -1.0,     -1.0,    -1.0,    -1.0,        -1.0,  &amp;amp;    ! 1.4 to 1.6
       0.375,    0.400,   0.505,   0.520,       0.640, &amp;amp;    ! 1.2 to 2.0
     !Prop 406 thru 420  BAR = 0.65
     ! Sig 2.0	Sig 1.5	  Sig 1	   Sig  0.75	Sig 0.5     P/D Range	
       0.075,    0.110,   0.170,   0.150,       0.185, &amp;amp;    ! 0.6 to 0.8	
       0.100,    0.100,   0.135,   0.180,       0.175, &amp;amp;    ! 0.8 to 1.0	    
       0.075,    0.090,   0.105,   0.150,       0.130, &amp;amp;    ! 1.0 to 1.2	
       0.095,    0.105,   0.130,   0.140,       0.185, &amp;amp;    ! 1.2 to 1.4	
       0.085,    0.085,   0.090,   0.125,       0.095, &amp;amp;    ! 1.4 to 1.6	
       0.170,    0.195,   0.235,   0.220,       0.335, &amp;amp;    ! 1.6 to 2.0	
     ! Prop 106 thru 120  BAR = 0.80
     ! Sig 2.0	Sig 1.5	  Sig 1	   Sig  0.75	Sig 0.5     P/D Range	
       0.100,    0.100,   0.145,   0.165,       0.140, &amp;amp;    ! 0.6 to 0.8	
       0.085,    0.105,   0.140,   0.160,       0.160, &amp;amp;    ! 0.8 to 1.0	    
       0.090,    0.090,   0.095,   0.125,       0.170, &amp;amp;    ! 1.0 to 1.2	
       0.085,    0.100,   0.120,   0.115,       0.145, &amp;amp;    ! 1.2 to 1.4	
       0.095,    0.100,   0.110,   0.130,       0.120, &amp;amp;    ! 1.4 to 1.6	
       0.155,    0.160,   0.185,   0.215,       0.245, &amp;amp;    ! 1.6 to 2.0	
     ! Prop 508 thru 520  BAR = 0.95
     ! Sig 2.0	Sig 1.5	  Sig 1	   Sig  0.75	Sig 0.5     P/D Range	
       -1.0,     -1.0,    -1.0,    -1.0,        -1.0,  &amp;amp;    ! 0.6 to 0.8
       0.095,    0.100,   0.115,   0.130,       0.150, &amp;amp;    ! 0.8 to 1.0	    
       0.095,    0.085,   0.090,   0.100,       0.135, &amp;amp;    ! 1.0 to 1.2	
       0.095,    0.110,   0.130,   0.150,       0.125, &amp;amp;    ! 1.2 to 1.4	
       0.095,    0.090,   0.080,   0.105,       0.150, &amp;amp;    ! 1.4 to 1.6	
       0.160,    0.190,   0.230,   0.205,       0.230, &amp;amp;    ! 1.6 to 2.0	
     ! Prop 208 thru 216  BAR = 0.95
     ! Sig 2.0	Sig 1.5	  Sig 1	   Sig  0.75	Sig 0.5     P/D Range	
       -1.0,    -1.0,     -1.0,    -1.0,        -1.0,  &amp;amp;    ! 0.6 to 0.8
       0.085,   0.100,    0.110,   0.130,       0.170, &amp;amp;    ! 0.8 to 1.0	    
       0.125,   0.090,    0.105,   0.090,       0.125, &amp;amp;    ! 1.0 to 1.2	
       0.085,   0.125,    0.105,   0.120,       0.125, &amp;amp;    ! 1.2 to 1.4	
       0.115,   0.075,    0.100,   0.125,       0.155, &amp;amp;    ! 1.4 to 1.6	
       -1.0,    -1.0,     -1.0,    -1.0,        -1.0/),&amp;amp;    ! 1.6 to 2.0 
     SHAPE = (/6,5,5/), ORDER = (/2,1,3/))              


END MODULE[/plain]&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 May 2009 22:35:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901534#M80866</guid>
      <dc:creator>gelarimer</dc:creator>
      <dc:date>2009-05-17T22:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901535#M80867</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
The following code produces array Test1() which is identical to array Test2() even though the ORDER argument in the intrinsicRESHAPE() is different.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong? Thanks for any comments.
&lt;PRE&gt;[plain]SUBROUTINE Test()

IMPLICIT NONE

REAL(4) ret1, ret2

REAL(4), DIMENSION(2,2,2) :: Test1 = RESHAPE( SOURCE = (/1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0/), &amp;amp;
         SHAPE = (/2,2,2/), ORDER = (/1,2,3/))


REAL(4), DIMENSION(2,2,2) :: Test2 = RESHAPE( SOURCE = (/1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0/), &amp;amp;
         SHAPE = (/2,2,2/), ORDER = (/2,1,3/))
         
       
       ret1 = Test1(2,1,1)
       
       ret2 = Test2(2,1,1)

       RETURN
end[/plain]&lt;/PRE&gt;
 &lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 12:16:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901535#M80867</guid>
      <dc:creator>gelarimer</dc:creator>
      <dc:date>2009-05-20T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901536#M80868</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I agree this looks odd - I'll investigate.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2009 14:30:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901536#M80868</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-20T14:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901537#M80869</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;Are you using IVF or Compaq Visual Fortran?&lt;BR /&gt;&lt;BR /&gt;Using CVF, Iget the same as you , (1,2,3,4,5,6,7,8) with ORDER = (/2,1,3/) instead of the desired (1,5,3,7,2,4,6,8).&lt;BR /&gt;&lt;BR /&gt;Using ORDER = (/3,2,1/) (i.e. C-ordering) I get Test2=(1,5,3,7,2,6,4,8) as desired.&lt;BR /&gt;&lt;BR /&gt;BUTusing ORDER = (/1,3,2/) I get Test2=(1,1,3,3,2,2,4,4) instead of the desired (1,2,5,6,3,4,7,8)&lt;BR /&gt;&lt;BR /&gt;Using IVF, I get the same as you , (1,2,3,4,5,6,7,8) with ORDER = (/2,1,3/) instead of the desired (1,5,3,7,2,4,6,8).&lt;BR /&gt;&lt;BR /&gt;Using ORDER = (/3,2,1/) (i.e. C-ordering) I get Test2=(1,5,3,7,2,6,4,8) as desired.&lt;BR /&gt;&lt;BR /&gt;BUT using ORDER = (/1,3,2/) I get Test2 =(1,2,5,6,3,4,7,8), as desired.&lt;BR /&gt;&lt;BR /&gt;So it looks like CVF had bugs withRESHAPE,and IVF stillhas RESHAPE bugs, but one less than CVF!&lt;BR /&gt;&lt;BR /&gt;I would guess that most effort was concentrated on getting the C-re-ordering right, at the expense of all others.&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 May 2009 14:55:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901537#M80869</guid>
      <dc:creator>anthonyrichards</dc:creator>
      <dc:date>2009-05-20T14:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901538#M80870</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Thanks Anthony and Steve, I am using IVF.</description>
      <pubDate>Wed, 20 May 2009 21:59:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901538#M80870</guid>
      <dc:creator>gelarimer</dc:creator>
      <dc:date>2009-05-20T21:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901539#M80871</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I reported this as a bug to development.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 May 2009 01:18:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901539#M80871</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-21T01:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901540#M80872</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
It turns out that this problem exists only for use of RESHAPE in initialization expressions. If you put it in executable code, such as an assignment statement, it works fine.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 May 2009 18:04:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901540#M80872</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-05-22T18:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901541#M80873</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
This bug is scheduled to be fixed in a future update to version 11.1 (probably August.)&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jul 2009 13:23:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901541#M80873</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-07-01T13:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: RESHAPE and order argument</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901542#M80874</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
This problem was corrected in 11.1 Update 2.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Nov 2009 15:43:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/RESHAPE-and-order-argument/m-p/901542#M80874</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-11-03T15:43:13Z</dc:date>
    </item>
  </channel>
</rss>

