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

MPICH

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2005, 12:07
Default Hi, I am trying to install F
  #1
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
Hi,
I am trying to install Foam on our beowulf that uses mpich/myrinet.
So I modified some lines in "bashrc" in ".OpenFOAM-1.1":

# export WM_MPLIB=LAM
export WM_MPLIB=MPICH

# SUN workstation
# ~~~~~~~~~~~~~~~

and in the ".bashrc" of "OpenFOAM-1.1" the following lines:

if [ .$WM_MPLIB = .MPICH ]; then

echo 'here--MPICH'

# ..... was.......
# export MPICH_VERSION=1.2.4
# export MPICH_PATH=$FOAM_SRC/mpich-$MPICH_VERSION
# export MPICH_ARCH_PATH=$MPICH_PATH/platforms/$WM_OPTIONS
# export MPICH_ROOT=$MPICH_ARCH_PATH
# ..... end was.......

# ..... new.......
export MPICH_ARCH_PATH=/opt/mpich-1.2.5..11
export MPICH_ROOT=$MPICH_ARCH_PATH
# ..... end new.......

AddLib $MPICH_ARCH_PATH/lib
AddPath $MPICH_ARCH_PATH/bin

# ..... was.......
# export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/mpich-$MPICH_VERSION
# ..... end was.......

# ..... new.......
export FOAM_MPI_LIBBIN=/opt/mpich-1.2.5..11/lib
# ..... end new.......

AddLib $FOAM_MPI_LIBBIN

...and now every time that I want to do something like "blockMesh . <case>" it complains about the shared library

"blockMesh: error while loading shared libraries: libPstream.so: cannot open shared object file: No such file or directory"

but in mpich-1.2.5..11 I fail to find such libPstream.so. If I add the one from
$FOAM_LIBBIN/lam-7.1.1 it will complain that:

"blockMesh: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory"

of course, as I donīt have any libmpi.so
Any ideas? PLease...
Cheers,
Radu
r2d2 is offline   Reply With Quote

Old   June 15, 2005, 19:32
Default The libPstream.so is the OpenF
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
The libPstream.so is the OpenFOAM library that has all the parallel stuff in it. We pre-build the lam-XXX/libPstream.so which gets built by the $FOAM_SRC/Pstream/Allwmake script. Have a look what it does now you have changed your MPI variables.

Anyway you will have to build a libPstream.so that uses your mpich version and then set your LD_LIBRARY_PATH to use that one.

(check with ldd `which blockMesh` to find out what libraries blockMesh is using)
mattijs 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO RUN FOAM WITH MPICH waynezw0618 OpenFOAM Running, Solving & CFD 5 May 13, 2009 08:21
PVM or MPICH CFX User CFX 5 November 3, 2004 16:31
LAM/MPI or MPICH? Junseok Kim Main CFD Forum 0 January 15, 2004 07:10
MPICH-Variables James Siemens 4 October 22, 2002 10:14
MPICH Junseok Kim Main CFD Forum 1 November 5, 2000 22:07


All times are GMT -4. The time now is 12:22.