Re: [Beowulf] array shape difference

2009-11-12 Thread Greg Lindahl
On Thu, Nov 12, 2009 at 08:26:13AM -0500, Stuart Barkley wrote: > > If the fortran code is doing virtual subscripts (e.g. array2(i*2 + j)) > it would likely generate about the same code as the compiler would > generate for 2 dimensions. In theory, the compiler can generate > better subscript com

Re: [Beowulf] array shape difference

2009-11-12 Thread amjad ali
Hi all and Thanks you all. It is making quite good sense. On Thu, Nov 12, 2009 at 8:50 AM, Michael H. Frese < michael.fr...@numerex-llc.com> wrote: > At 06:26 AM 11/12/2009, Stuart Barkley wrote: > >> At 03:40 PM 11/11/2009, Peter St. John wrote: >> > The difference between: >> > arr

Re: [Beowulf] array shape difference

2009-11-12 Thread Michael H. Frese
At 06:26 AM 11/12/2009, Stuart Barkley wrote: At 03:40 PM 11/11/2009, Peter St. John wrote: > The difference between: > array1(1:6) > array2(1:2, 1:3) > > would be reflected in the size of the executable, not the size > of the data. > Right? On Thu, 12

Re: [Beowulf] array shape difference

2009-11-12 Thread Stuart Barkley
At 03:40 PM 11/11/2009, Peter St. John wrote: > The difference between: > array1(1:6) > array2(1:2, 1:3) > > would be reflected in the size of the executable, not the size > of the data. > Right? On Thu, 12 Nov 2009 at 07:18 -, Michael H. Frese wrote

Re: [Beowulf] array shape difference

2009-11-12 Thread Michael H. Frese
That's correct. The executable size would reflect the extra operations required to compute the offset for the doubly dimensioned array. Mike At 03:40 PM 11/11/2009, Peter St. John wrote: The difference between: array1(1:6) array2(1:2, 1:3) would be reflected in the size of the execu

Re: [Beowulf] array shape difference

2009-11-11 Thread Peter St. John
The difference between: array1(1:6) array2(1:2, 1:3) would be reflected in the size of the executable, not the size of the data. Right? Peter On Wed, Nov 11, 2009 at 9:01 AM, Michael H. Frese < michael.fr...@numerex-llc.com> wrote: > At 06:43 PM 11/10/2009, Larry Stewart wrote: > > > O

Re: [Beowulf] array shape difference

2009-11-11 Thread Michael H. Frese
At 06:43 PM 11/10/2009, Larry Stewart wrote: On Tue, Nov 10, 2009 at 8:30 PM, amjad ali <amja...@gmail.com> wrote: HI, suppose we have four arrays with same number of elements say 6., but different dimensions like: array1(1:6) array2(1:2, 1:3) array3(1

Re: [Beowulf] array shape difference

2009-11-10 Thread Larry Stewart
On Tue, Nov 10, 2009 at 8:30 PM, amjad ali wrote: > HI, > > suppose we have four arrays with same number of elements say 6., but > different dimensions like: > > array1(1:6) > array2(1:2, 1:3) > array3(1:2, 1:300, 1:100) > array4(1:4, 1:15, 1:10, 1:100) > > > Does each of these array

[Beowulf] array shape difference

2009-11-10 Thread amjad ali
HI, suppose we have four arrays with same number of elements say 6., but different dimensions like: array1(1:6) array2(1:2, 1:3) array3(1:2, 1:300, 1:100) array4(1:4, 1:15, 1:10, 1:100) Does each of these arrays in fortran will occupy same amount of memory? For sending/receiving e