From owner-sc22wg5+sc22wg5-dom8=www.open-std.org@open-std.org  Fri Apr 18 21:56:05 2014
Return-Path: <owner-sc22wg5+sc22wg5-dom8=www.open-std.org@open-std.org>
X-Original-To: sc22wg5-dom8
Delivered-To: sc22wg5-dom8@www.open-std.org
Received: by www.open-std.org (Postfix, from userid 521)
	id 47CA7358698; Fri, 18 Apr 2014 21:56:05 +0200 (CEST)
Delivered-To: sc22wg5@open-std.org
Received: from mail.jpl.nasa.gov (mailhost.jpl.nasa.gov [128.149.139.109])
	by www.open-std.org (Postfix) with ESMTP id BAE1935706C
	for <sc22wg5@open-std.org>; Fri, 18 Apr 2014 21:56:03 +0200 (CEST)
Received: from [137.79.7.57] (math.jpl.nasa.gov [137.79.7.57])
	by smtp.jpl.nasa.gov (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id s3IJtxVZ020048
	(using TLSv1/SSLv3 with cipher DHE-RSA-AES256-SHA (256 bits) verified NO)
	for <sc22wg5@open-std.org>; Fri, 18 Apr 2014 12:56:00 -0700
Subject: Re: (j3.2006) (SC22WG5.5233) [ukfortran]   Ballot on draft DTS
From: Van Snyder <Van.Snyder@jpl.nasa.gov>
Reply-To: Van.Snyder@jpl.nasa.gov
To: sc22wg5 <sc22wg5@open-std.org>
In-Reply-To: <20140418193943.5AF0B358669@www.open-std.org>
References: <20140312154430.1B7899EB083@www.open-std.org>
	 <20140415075245.363AC3583C0@www.open-std.org>
	 <20140418184256.B9AAF358553@www.open-std.org>
	 <20140418193943.5AF0B358669@www.open-std.org>
Content-Type: text/plain; charset="ISO-8859-1"
Organization: Yes
Date: Fri, 18 Apr 2014 12:55:59 -0700
Message-ID: <1397850959.2988.19.camel@math.jpl.nasa.gov>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.3 (2.32.3-30.el6) 
Content-Transfer-Encoding: 7bit
X-Source-Sender: Van.Snyder@jpl.nasa.gov
X-AUTH: Authorized
Sender: owner-sc22wg5@open-std.org
Precedence: bulk

>On Apr 15, 2014, at 12:35 AM, Malcolm Cohen <malcolm@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.


