I think if you're also using fortran compiler that support iso_c_binding (a fortran 2003 standard) that may also help ensuring the data types are the same. The latest gfortran supports this.
On Fri, Jun 11, 2010 at 5:22 AM, Giraudon Cyril <cyril.girau...@free.fr>wrote: > Le 11/06/2010 13:12, Jeff Squyres a écrit : > > On Jun 11, 2010, at 5:59 AM, Giraudon Cyril wrote: > > > > > >> I'd like to know if it is possible to make communicate fortran and C > >> programs with MPI-2/Open MPI using the master / slave mode ? > >> > >> The master is in Fortran > >> The slave is in C > >> The exchanged Data are real, integer and character scalars and arrays. > >> > > Yes, it should be no problem. It is easiest when the representations of > the data by your two compilers are the same (e.g., REAL == float, INTEGER == > int). It may be easiest to use compilers from the same vendor / family for > linkage purposes, but it probably isn't 100% necessary. > > > > > Thanks a lot jeff. > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users > -- David Zhang University of California, San Diego