ENH: install scotch files under ThirdyParty platforms/

- for future updates of scotch, need to edit these two files:

    OpenFOAM-<VERSION>/src/parallel/decompose/Allwmake
    ThirdParty-<VERSION>/Allwmake
This commit is contained in:
Mark Olesen
2010-11-09 10:11:17 +01:00
parent f015bc0c82
commit 08b27669da
3 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,10 @@
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # run from this directory
set -x set -x
SCOTCH_VERSION=scotch_5.1.10b
SCOTCH_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$SCOTCH_VERSION
export SCOTCH_ARCH_PATH
wmakeLnInclude decompositionMethods wmakeLnInclude decompositionMethods
wmake libso scotchDecomp wmake libso scotchDecomp
@ -9,7 +13,10 @@ wmake libso metisDecomp
if [ -d "$FOAM_MPI_LIBBIN" ] if [ -d "$FOAM_MPI_LIBBIN" ]
then then
( WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB; wmake libso ptscotchDecomp ) (
WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB
wmake libso ptscotchDecomp
)
fi fi
wmake libso decompositionMethods wmake libso decompositionMethods

View File

@ -3,7 +3,7 @@ sinclude $(RULES)/mplib$(WM_MPLIB)
EXE_INC = \ EXE_INC = \
$(PFLAGS) $(PINC) \ $(PFLAGS) $(PINC) \
-I$(WM_THIRD_PARTY_DIR)/scotch_5.1.10b/include \ -I$(SCOTCH_ARCH_PATH)/include \
-I/usr/include/scotch \ -I/usr/include/scotch \
-I../decompositionMethods/lnInclude -I../decompositionMethods/lnInclude

View File

@ -1,5 +1,5 @@
EXE_INC = \ EXE_INC = \
-I$(WM_THIRD_PARTY_DIR)/scotch_5.1.10b/include \ -I$(SCOTCH_ARCH_PATH)/include \
-I/usr/include/scotch \ -I/usr/include/scotch \
-I../decompositionMethods/lnInclude -I../decompositionMethods/lnInclude