CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to get MPI_COMM_WORLD (http://www.cfd-online.com/Forums/openfoam-programming-development/74272-how-get-mpi_comm_world.html)

sebi March 29, 2010 07:16

How to get MPI_COMM_WORLD
 
Hello everybody,

I'm trying to include an external solver to OpenFOAM and therefore I need to know the communication's type OpenFoam uses. In PStream.C I see it is MPI_COMM_WORLD, but how am I able to access the value of MPI_COMM_WORLD ?
Does anybody know how to get this information ?

Thanks a lot,

Sebi

gschaider March 29, 2010 14:45

Quote:

Originally Posted by sebi (Post 252107)
I'm trying to include an external solver to OpenFOAM and therefore I need to know the communication's type OpenFoam uses. In PStream.C I see it is MPI_COMM_WORLD, but how am I able to access the value of MPI_COMM_WORLD ?
Does anybody know how to get this information ?

If you have to ask for THAT kind of information, I wish you good luck. You will find that value in some file called mpi.h (or similar) on your machine. See also http://en.wikipedia.org/wiki/Message_Passing_Interface for what that is. Anyway. MPI is only one possible layer underneath the PStream-layer


All times are GMT -4. The time now is 18:16.