(j3.2006) Comment on N1761
Aleksandar Donev
donev1 at llnl.gov
Mon Dec 1 17:40:22 EST 2008
Hi,
> call MPI_send(y,size(y)) ! Sequence association
> <----non-conforming?
> In my opinion, the marked line would be non-conforming even under the
> additional rules specified by TR29113, since it contravenes p290, para 13
> of the F2008 draft standard 08-007r2, which disallows matching of actual
> arguments of arbitrary ranks to the assumed size dummy of rank one *for
> a generic interface*.
You are right.
> If my critique is correct, there are the following choices:
>
> * Give up having a generic interface, or use the assumed size only
> for 1-d arrays. This would only require correcting the above example.
This is only an example, so of course one can change it. But ultimately what
we want is a facility that can be used with arguments of different ranks. It
is not worth sacrificing this just for the generic interface. I guess the
user will have to keep track of multiple procedure names instead of a
generic.
> * Add an exception to the above-mentioned rule, applying for TYPE(*)
> arguments of assumed size.
I think this is not an acceptable option. The reason for the rank-matching
requirement has nothing to do with type matching, so making exception for
TYPE(*) only is a hack. I believe that for DIMENSION(:) this rule
(p290, para 13) does not and should not apply.
Thanks,
Aleks
--
Aleksandar Donev, Ph.D.
Lawrence Postdoctoral Fellow @ Lawrence Livermore National Laboratory
High Performance Computational Materials Science and Chemistry
E-mail: donev1 at llnl.gov
Phone: (925) 424-6816 Fax: (925) 423-0785
Address: P.O.Box 808, L-367, Livermore, CA 94551-9900
Web: http://cherrypit.princeton.edu/donev
More information about the J3
mailing list