[MPI3 Fortran] Fwd: [Mpi-comments] MPI 3.0:Fortran 2008 interface - issue with the LOGICAL kind

Malcolm Cohen malcolm at nag-j.co.jp
Sun Mar 3 20:56:50 CST 2013


>    (B1) Is it possible, that a BIND(C) routine
>         has a dummy argument that is a non-BIND(C)
>         ABSTRACT INTERFACE procedure argument?

That is not possible: all dummy arguments of a BIND(C) routine must be 
interoperable - for procedures that requires BIND(C).

It would be reasonable to extend C_FUNLOC and C_F_PROCPOINTER to permit 
non-interoperable procedures, similarly to how we permit non-interoperable 
variables in C_LOC and C_F_POINTER.  Then the argument could be C_FUNPTR (by 
value).  I don't know whether this would help you though.

>    (B2) Do we have any problem with
>         the TYPE(C_PTR), VALUE dummy arguments
>         in the ABSTRACT INTERFACE MPI_User_function
>         on MPI-3.0 page 183 line 45 - page 184 line 3
>         if the we remove the BIND(C) from this
>         ABSTRACT INTERFACE (i.e. on page 183, line 47).

No problem.

Cheers,
-- 
................................Malcolm Cohen, Nihon NAG, Tokyo. 




More information about the mpiwg-fortran mailing list