Skip to content

Commit

Permalink
Updated to avoid creating PINC and PLIBS environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry authored and Henry committed Oct 27, 2012
1 parent 949ec0d commit 8064dab
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions etc/config/settings.sh
Expand Up @@ -396,23 +396,12 @@ SYSTEMOPENMPI)
# Use the system installed openmpi, get library directory via mpicc
export FOAM_MPI=openmpi-system

# Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
export PINC="`mpicc --showme:compile`"
export PLIBS="`mpicc --showme:link`"
libDir=`echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'`
libDir=`mpicc --showme:link | sed -e 's/.*-L\([^ ]*\).*/\1/'`

# Bit of a hack: strip off 'lib' and hope this is the path to openmpi
# include files and libraries.
export MPI_ARCH_PATH="${libDir%/*}"

if [ "$FOAM_VERBOSE" -a "$PS1" ]
then
echo "Using system installed MPI:"
echo " compile flags : $PINC"
echo " link flags : $PLIBS"
echo " libmpi dir : $libDir"
fi

_foamAddLib $libDir
unset libDir
;;
Expand Down

0 comments on commit 8064dab

Please sign in to comment.