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

How to compile OF with another Mpi

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 4, 2009, 05:17
Post How to compile OF with another Mpi
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 207
Rep Power: 8
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
Default
  #2
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 496
Rep Power: 17
bigphil will become famous soon enough
I think $MPI_HOME and $MPI_ARCH_PATH variables are set in '$WM_PROJECT_DIR/etc/settings.sh' about two-thirds of the way down:

case "$WM_MPLIB" in
OPENMPI)
#mpi_version=openmpi-1.3.3
mpi_version=openmpi-1.2.6
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS

# Tell OpenMPI where to find its install directory
export OPAL_PREFIX=$MPI_ARCH_PATH

_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.

Philip
bigphil is offline   Reply With Quote

Reply

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 30 March 21, 2014 06:34
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 05:46.