[MPIWG Fortran] Assumed-size array in MPI3

Lionel, Steve steve.lionel at intel.com
Mon Mar 10 11:14:05 CDT 2014


Don't believe everything you read. In the context of interfaces to
non-Fortran procedures, assumed-size dummy arrays are almost always exactly
what you want. I would agree that for an all-Fortran application, I would
discourage their use.

 

Steve

 

From: mpiwg-fortran [mailto:mpiwg-fortran-bounces at lists.mpi-forum.org] On
Behalf Of Junchao Zhang
Sent: Monday, March 10, 2014 12:07 PM
To: MPI-WG Fortran working group
Subject: [MPIWG Fortran] Assumed-size array in MPI3

 

Hello,

  I read a Fortran textbook, which says "Assumed-size dummy arrays are a
holdover from earlier versions of Fortran. They should never be used in any
new programs".

  But I find MPI3 has interfaces like

MPI_Alltoallv(sendbuf, sendcounts, sdispls, sendtype, recvbuf, recvcounts,
rdispls, recvtype, comm, ierror)
 ...
 INTEGER, INTENT(IN) :: sendcounts(*), sdispls(*), recvcounts(*), rdispls(*)
 ...

 

  I was wondering why MPI3 still uses it.

  Thanks.

 

--Junchao Zhang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpi-forum.org/pipermail/mpiwg-fortran/attachments/20140310/6ef9052b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6616 bytes
Desc: not available
URL: <http://lists.mpi-forum.org/pipermail/mpiwg-fortran/attachments/20140310/6ef9052b/attachment-0001.bin>


More information about the mpiwg-fortran mailing list