(j3.2006) Interop TR: Assumed-size actuals

Bill Long longb
Thu Nov 18 18:07:54 EST 2010

On 11/16/10 5:18 PM, Aleksandar Donev wrote:
> On 11/16/10 18:02, Bill Long wrote:
>>> For the shape, it is said
>>> it is [(size(array,i),i=1,rank(array))]. Should this not be rank-1? What
>>> is the size along the last dimension?
>> The MPI people asked for this.  If you write the interface routine for
>> an MPI routine and make the buffer argument assumed-rank, the previous
>> spec had problems if the corresponding actual argument was assumed-shape.
> But what about my question above: Is the shape of size rank or rank-1?
> Aleks

The SIZE intrinsic is redefined in 3.4.2 to specify a value for the last 
dimension, so the shape formula is well defined.



Bill Long                                           longb at cray.com
Fortran Technical Support    &                 voice: 651-605-9024
Bioinformatics Software Development            fax:   651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101

More information about the J3 mailing list