CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to get MPI_COMM_WORLD

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2010, 07:16
Default How to get MPI_COMM_WORLD
  #1
New Member
 
Join Date: Feb 2010
Posts: 7
Rep Power: 16
sebi is on a distinguished road
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
sebi is offline   Reply With Quote

Old   March 29, 2010, 14:45
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sebi View Post
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
gschaider is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:05.