Re: Co-Array Fortran



Hello,

gary.l.scott@xxxxxxxx wrote:

Sure, I'm just not sure there aren't problems where it would be
critical to know whether the referenced array is a local one or a
remote one. It seems like there needs to be an inquiry routine to
tell whether it is local or remote and maybe in rare cases, copy local
for performance reasons or some other reason. Anyway, it isn't that
important that I understand since it's unlikely I'll ever use it.

If co-arrays are confusing, simplify the issue by considering
a co-scalar.

There is one of each co-scalar on each image.

For example, given the declaration

integer :: i [*]

then in the executable

i = i + i[np]

means to add to the local i
the value of the i on processor np.

If np == this_image() then
it's the same as i = i + i

It really is simpler than you're making it.

--

Dan Nagle
Purple Sage Computing Solutions, Inc.
.