On 12/22/2011 8:43 AM, Fernando G. Tinetti wrote:
> Thank you very much.
>
> I tend to "extremely reduce" something just to verify if I understand.
> In this case, if some data is not a derived type then it is an
> intrinsic type. More specifically, in the example, a is of complex
> intrinsic type, with several attributes including the array one. Then,
> I think that in the context of the example, "a" would be a named
> variable of intrinsic type (even when I do not know if the term
> "variable" appears in some Fortran standard) and, thus, it can be used
> in a reduction clause...
>
I didn't see any argument against the data type being suitable for a
reduction. However, when each thread works on an independent sum and
stores into a different array element, that's not a reduction.
--
Tim Prince
|