|
[Sponsors] |
June 15, 2005, 13:07 |
Hi,
I am trying to install F
|
#1 |
Member
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17 |
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 |
|
June 15, 2005, 20:32 |
The libPstream.so is the OpenF
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOW TO RUN FOAM WITH MPICH | waynezw0618 | OpenFOAM Running, Solving & CFD | 5 | May 13, 2009 09:21 |
PVM or MPICH | CFX User | CFX | 5 | November 3, 2004 17:31 |
LAM/MPI or MPICH? | Junseok Kim | Main CFD Forum | 0 | January 15, 2004 08:10 |
MPICH-Variables | James | Siemens | 4 | October 22, 2002 11:14 |
MPICH | Junseok Kim | Main CFD Forum | 1 | November 5, 2000 23:07 |