From: salo@cray.com (Eric Salo)
Newsgroups: comp.parallel.mpi
Subject: Re: C and FORTRAN
Date: 9 Oct 1998 18:14:38 GMT
Organization: Silicon Graphics, Inc.
Message-Id: <6vljqe$qo0$1@walter-fddi.cray.com>
References: <361E42C2.4DB1EE55@ifd.mavt.ethz.ch>


> Now, my concern is the following: where should I initialize the MPI
> environment? There are 3 possibilities:
>
> 1) call MPI_Init from the C part only
> 2) call MPI_INIT from the FORTRAN part only
> 3) initialize MPI from both the parts of the code

Historically, the general rule has been that MPI_Init() should be called
from the same language as the main() section of your code. It may be that
has been relaxed in MPI-2, I don't recall. But you definitely don't want
to call it more than once.

--
Eric Salo      Silicon Graphics      salo@sgi.com

