(j3.2006) (SC22WG5.5234) [ukfortran] Ballot on draft DTS
Van Snyder
Van.Snyder
Fri Apr 18 15:55:59 EDT 2014
>On Apr 15, 2014, at 12:35 AM, Malcolm Cohen <malcolm at nag-j.co.jp> wrote:
>>
>> In particular, (1) the collectives CO MAX, CO MIN, CO REDUCE, CO SUM,
>> should be split into two forms, one with RESULT, one without. The one
>> with RESULT should have SOURCE as INTENT(IN), the one without should
>> have SOURCE as INTENT(INOUT). RESULT must not be optional. The SOURCE
>> INTENT(IN) form should have no coarray restrictions on SOURCE.
The interfaces would be
CO_MAX ( SOURCE, RESULT [, RESULT_IMAGE, STAT, ERRMSG ] )
and
CO_MAX ( SOURCE [, RESULT_IMAGE, STAT, ERRMSG ] )
Can this work in the case that SOURCE is integer?
If you CALL CO_MAX ( I, J, K ), which one is it?
is it CALL CO_MAX ( SOURCE=I, RESULT=J, RESULT_IMAGE=K )
or CALL CO_MAX ( SOURCE=I, RESULT_IMAGE=J, STAT=K )
If the interfaces were
CO_MAX ( SOURCE, RESULT [, ERRMSG, RESULT_IMAGE, STAT ] )
and
CO_MAX ( SOURCE [, ERRMSG, RESULT_IMAGE, STAT, ERRMSG ] )
generic resolution would work, but it feels a bit weird to put ERRMSG
before RESULT_IMAGE.
More information about the J3
mailing list