You can translate the communicator from Fortran to C using the MPI_COMM_F2C 
routine.

--td
Message: 4
Date: Thu, 05 Jun 2008 08:53:55 +0200
From: Samuel Sarholz <sarh...@rz.rwth-aachen.de>
Subject: [OMPI users] Communicators in Fortran and C
To: us...@open-mpi.org
Message-ID: <48478d83.6080...@rz.rwth-aachen.de>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

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,
Samuel

Reply via email to