[MPIWG Fortran] Assumed-size array in MPI3
Bill Long
longb at cray.com
Mon Mar 10 11:24:00 CDT 2014
I agree with Steve. In these sorts of calls the actual size of the array is available from somewhere else - either another argument or information in the communicator. This is the common situation when calling C.
Cheers,
Bill
On Mar 10, 2014, at 11:06 AM, Junchao Zhang <jczhang at mcs.anl.gov> wrote:
> 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
> _______________________________________________
> mpiwg-fortran mailing list
> mpiwg-fortran at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpiwg-fortran
Bill Long longb at cray.com
Fortran Technical Suport & 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 mpiwg-fortran
mailing list