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.
Le 11/06/2010 13:12, Jeff Squyres a écrit :
> On Jun 11, 2010, at 5:59 AM, Giraudon Cyril wrote:Thanks a lot jeff.
>
>
>> 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.
>
>
_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users