COMP: ptscotchDecomp: scotch6.0 requirements

This commit is contained in:
mattijs
2012-12-12 09:45:18 +00:00
parent 7942d3e90f
commit 3c7d4113f2
2 changed files with 13 additions and 2 deletions

View File

@ -44,7 +44,18 @@ wmakeLnInclude decompositionMethods
if [ -n "$SCOTCH_ARCH_PATH" ] if [ -n "$SCOTCH_ARCH_PATH" ]
then then
wmake $makeType scotchDecomp wmake $makeType scotchDecomp
[ -d "$FOAM_LIBBIN/$FOAM_MPI" ] && wmakeMpiLib ptscotchDecomp
if [ -d "$FOAM_LIBBIN/$FOAM_MPI" ]
then
#- Bit of a hack: ptscotch 6 requires scotch linked as well as. Can be
# removed once ptscotch declares dependency on scotch itself.
if [ "$SCOTCH_VERSION" = "scotch_6.0.0" ]
then
export LINK_FLAGS="-lscotch"
fi
wmakeMpiLib ptscotchDecomp
fi
else else
echo echo
echo "Skipping scotchDecomp (ptscotchDecomp)" echo "Skipping scotchDecomp (ptscotchDecomp)"

View File

@ -9,4 +9,4 @@ EXE_INC = \
-I../decompositionMethods/lnInclude -I../decompositionMethods/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-L$(SCOTCH_ROOT)/lib -L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) -lptscotch -lptscotcherrexit -lscotch -lrt -L$(SCOTCH_ROOT)/lib -L$(FOAM_EXT_LIBBIN)/$(FOAM_MPI) -lptscotch -lptscotcherrexit ${LINK_FLAGS} -lrt