CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Installation

How to compile OF with another Mpi

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   September 4, 2009, 05:17
Post How to compile OF with another Mpi
Senior Member
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 11
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Hi Foamers,
I would like to compile OF with an OpenMPI version different from the one included in the Third Party, as I use other home-made parallel codes that work with a system installation of OpenMPI libraries. The standard OF installation overwrites the $MPI_HOME and $MPI_ARCH_PATH variables, so the system installation is switched off.
Is there any simple workaround to tell OF to use my system installation? Actually I'm obliged to create a separate openfoam user on my system, but I would prefer to use OF and my other codes from a single user.
I use OpenFOAM-1.6.x under a SLAMD64 Linux distro.
Thanks, Ivan
ivan_cozza is offline   Reply With Quote

Old   September 29, 2009, 12:43
Senior Member
bigphil's Avatar
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 642
Rep Power: 23
bigphil will become famous soon enoughbigphil will become famous soon enough
I think $MPI_HOME and $MPI_ARCH_PATH variables are set in '$WM_PROJECT_DIR/etc/' about two-thirds of the way down:

case "$WM_MPLIB" in
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version

# Tell OpenMPI where to find its install directory

_foamAddPath $MPI_ARCH_PATH/bin
_foamAddLib $MPI_ARCH_PATH/lib

export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
unset mpi_version

You could probably change these to where your system OpenMPI is installed, just a suggestion not sure if it will work.

bigphil is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 October 18, 2017 07:17
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 13:24
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 10:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12
MPI and parallel computation Wang Main CFD Forum 7 April 15, 2004 11:25

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