[J3] C_PTR not allowed in SEQUENCE types?
Bill Long
longb at cray.com
Fri Mar 12 04:21:00 UTC 2021
MPI has 3 Fortran interfaces. The ancient include file, mpif.h, and two modules, MPI and MPI_F08. The MPI module uses SEQUENCE while the MPI_F08 module uses BIND(C). I’ve argued in the past to get rid of both mpif.h and the MPI module, leaving only the MPI_F08 module. Those who develop Fortran tools for MPI were staunchly opposed.
The alternative would be to do what SHMEM did and deprecate the Fortran interface entirely, on the grounds that the capabilities provided by SHMEM are all included in Fortran already anyway, and also it makes life easier for those providing SHMEM packages. The same argument could be made for MPI.
Cheers,
Bill
> On Mar 11, 2021, at 6:10 PM, Malcolm Cohen via J3 <j3 at mailman.j3-fortran.org> wrote:
>
>
> So my question would be why is MPI using SEQUENCE and not using BIND(C)?
Bill Long longb at hpe.com
Engineer/Master , Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9143
Hewlett Packard Enterprise/ 2131 Lindau Lane/ Suite 1000/ Bloomington, MN 55425
More information about the J3
mailing list