From: lederman@breeze.cs.wisc.edu (Steve Huss-Lederman)
Newsgroups: comp.parallel.mpi
Subject: Re: fortran and c
Date: 19 Aug 1998 12:12:08 GMT
Organization: U of Wisconsin CS Dept
Message-Id: <6refeo$ive@spool.cs.wisc.edu>
References: <35DA10FA.776B@olivos.caltech.edu>


> I'm trying to parallelize a code which is part in C and part in Fortran.
> I need to make MPI library calls from both.  Has anyone tried it? Will
> it work?

The easy answer is yes.  You can call both Fortran and C MPI routines
inside a single program.  There are a number of issues involved.  In
MPI-2 the issue of language interoperability was considered more
formally and in more detail.  You might find it useful to look at
section 4.12 of the MPI-2 document (http://www.mpi-forum.org).  Some
of the issues are: is the data representation the same for the MPI
datatypes, are constants the same, etc.

Good luck,
Steve

