Newsgroups: comp.parallel.mpi
From: Romuald BON <Romuald.BON@ifp.fr>
Subject: Fortran 77 and C  MPI communicator
Organization: Institut Francais du Petrole
Date: Thu, 30 May 1996 13:58:37 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <31AD8D6D.5E06@ifp.fr>

Hi,

	I'm writing a library using MPI with both fortran 77 and C routines.
The source code, wich this library is dedicated to, is a fortran 77
program. That's why I wrote the init routine of my library in fortran.
The first version of this routine duplicates the MPI_COMM_WORLD
communicator to have a library safe communication domain and then calls
a C routine that creates either a new communicator based on
MPI_COMM_WORLD.
	The problem I have to deal with, is that I'd like not to have to create
2 library communicators (the first, for library fortran routines, and
the second, for library C routines). But fortran communicators are
INTEGER type although C communicators are struct MPIR_COMMUNICATOR
pointer type.
	
	Is there any solution to share communicators between fortran code and C
code ??

Romuald Bon,	bonr@irsun21.ifp.fr

