[MPI3 Fortran] Results of San Jose Forum meeting

Bill Long longb at cray.com
Thu Mar 11 09:46:57 CST 2010



Jeff Squyres wrote:

> 
> 3. The derived types for MPI handles in "use mpi3" will all be of the form:
> 
>    type MPI_Comm
>        sequence
>        INTEGER :: val
>    end type MPI_Comm
> 

A sequence type is not interoperable with C.  Did you consider

type,bind(c) :: MPI_Comm
    integer(c_int) :: val
end type MPI_Comm

instead?  If the routine that you are expecting to pass such an object 
to is written in C, this seems like a better option.

Cheers,
Bill

-- 
Bill Long                                           longb at cray.com
Fortran Technical Support    &                 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