You can translate the communicator from Fortran to C using the MPI_COMM_F2C routine.
> Message: 4
> Date: Thu, 05 Jun 2008 08:53:55 +0200
> From: Samuel Sarholz <sarholz_at_[hidden]>
> Subject: [OMPI users] Communicators in Fortran and C
> To: users_at_[hidden]
> Message-ID: <48478D83.6080800_at_[hidden]>
> Content-Type: text/plain; charset="iso-8859-1"
> I have problems running a Fortran program which is calling a C library
> with OpenMPI.
> The problem is that the Fortan part has a communicator which is passed
> to the C library.
> And if I understand the headers right a communicator is an integer in
> fortran, but a struct on the C side of openmpi.
> Is there a way to translate/cast these communicators?
> best regards,