mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: ptscotchDecomp: scotch6.0 requirements
This commit is contained in:
@ -44,7 +44,18 @@ wmakeLnInclude decompositionMethods
|
||||
if [ -n "$SCOTCH_ARCH_PATH" ]
|
||||
then
|
||||
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
|
||||
echo
|
||||
echo "Skipping scotchDecomp (ptscotchDecomp)"
|
||||
|
||||
@ -9,4 +9,4 @@ EXE_INC = \
|
||||
-I../decompositionMethods/lnInclude
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user