Mac OS X updates
This commit is contained in:
parent
4935804479
commit
db148bed71
1 changed files with 30 additions and 7 deletions
|
@ -47,6 +47,10 @@ _foamAddLib()
|
||||||
while [ $# -ge 1 ]
|
while [ $# -ge 1 ]
|
||||||
do
|
do
|
||||||
export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH
|
||||||
|
if [ "$WM_ARCH" == "darwinIntel" ]
|
||||||
|
then
|
||||||
|
export DYLD_LIBRARY_PATH=$1:$DYLD_LIBRARY_PATH
|
||||||
|
fi
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -168,6 +172,14 @@ unset MPI_ARCH_PATH
|
||||||
|
|
||||||
case "$WM_MPLIB" in
|
case "$WM_MPLIB" in
|
||||||
OPENMPI)
|
OPENMPI)
|
||||||
|
if [ "$WM_ARCH" == "darwinIntel" ]
|
||||||
|
then
|
||||||
|
mpi_version=openmpi-system
|
||||||
|
export MPI_HOME=/usr
|
||||||
|
export MPI_ARCH_PATH=/usr
|
||||||
|
|
||||||
|
unset OPAL_PREFIX
|
||||||
|
else
|
||||||
mpi_version=openmpi-1.4.1
|
mpi_version=openmpi-1.4.1
|
||||||
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
|
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
|
||||||
export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
|
export MPI_ARCH_PATH=$MPI_HOME/platforms/$WM_OPTIONS
|
||||||
|
@ -177,6 +189,7 @@ OPENMPI)
|
||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
|
fi
|
||||||
|
|
||||||
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
|
@ -317,6 +330,16 @@ export MPI_BUFFER_SIZE
|
||||||
# export LD_PRELOAD=$FOAM_LIBBIN/libhoard.so:$LD_PRELOAD
|
# export LD_PRELOAD=$FOAM_LIBBIN/libhoard.so:$LD_PRELOAD
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
# HOARD seems to crash Paraview on Mac OS X 10.6
|
||||||
|
#if [ -f $FOAM_LIBBIN/libhoard.dylib ]
|
||||||
|
#then
|
||||||
|
# if [ -z "$DYLD_INSERT_LIBRARIES" ]
|
||||||
|
# then
|
||||||
|
# export DYLD_INSERT_LIBRARIES=$FOAM_LIBBIN/libhoard.dylib
|
||||||
|
# else
|
||||||
|
# export DYLD_INSERT_LIBRARIES=$FOAM_LIBBIN/libhoard.dylib:$DYLD_INSERT_LIBRARIES
|
||||||
|
# fi
|
||||||
|
#fi
|
||||||
|
|
||||||
# cleanup environment:
|
# cleanup environment:
|
||||||
# ~~~~~~~~~~~~~~~~~~~~
|
# ~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
Reference in a new issue