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

what's dummy Pstream for??

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2012, 11:55
Default what's dummy Pstream for??
  #1
New Member
 
Kun Qu
Join Date: Nov 2010
Posts: 5
Rep Power: 15
quaintchewster is on a distinguished road
I tried compiling OF 2.1.0 on a cluster with its native MPI. The make system of OpenFoam is really puzzeling. And I was confused by the dummy Pstream.

I think dummy Pstream was designed for serial running. But why libOpenFoam.so is forced to be linked with dummy version libPstream.so ? How this libOpenFoam.so with the dummy Pstream code can do parallel running??
quaintchewster is offline   Reply With Quote

Old   March 4, 2012, 12:54
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings quaintchewster,

It's simple: the dummy Pstream acts as a place holder, sort-of of a stub. This way it's possible to have a single OpenFOAM installation that can easily work with any number of MPI libraries/toolboxes as you want to, without having to recompile the whole OpenFOAM source code.

For example, if you were conducting experiments to compare several MPI libraries, such as Open-MPI 1.4.3 and 1.5.3 vs MPICH2 1.4.1, you would then have the following folders in "$FOAM_LIBBIN":
  • dummy
  • openmpi-1.4.3
  • openmpi-1.5.3
  • mpich2-1.4.1
Inside each one you will then have a dedicated Pstream library, along with other MPI dependent libraries.

For more about how wmake works: OpenFoam Installation in Redhat Enterprise linux 5 - post #22
For more about how the OpenFOAM works on the shell: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
lakeat and vivek05 like this.
__________________
wyldckat is offline   Reply With Quote

Old   March 4, 2012, 13:29
Default
  #3
New Member
 
Kun Qu
Join Date: Nov 2010
Posts: 5
Rep Power: 15
quaintchewster is on a distinguished road
wyldckat

Thank you !!
If only I read these a week ago. It took me so much time to make it.
quaintchewster is offline   Reply With Quote

Reply

Tags
pstream library


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Pstream library error in parallel mode begou OpenFOAM Installation 12 July 31, 2023 11:40
Pstream on Cray gwierink OpenFOAM Installation 12 March 11, 2014 09:20
Dummy scalar SAKTI Siemens 2 September 5, 2008 00:29
Prallel run error Pstream library tsjb00 OpenFOAM Running, Solving & CFD 1 April 12, 2008 08:43
Coordinate cut c-grid and dummy cells zonexo Main CFD Forum 0 December 13, 2005 05:05


All times are GMT -4. The time now is 13:58.