CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   MPICH (http://www.cfd-online.com/Forums/openfoam-installation/57740-mpich.html)

r2d2 June 15, 2005 12:07

Hi, I am trying to install F
 
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

mattijs June 15, 2005 19:32

The libPstream.so is the OpenF
 
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)


All times are GMT -4. The time now is 03:14.