mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: metisDecomp: support for metis-5.1
This commit is contained in:
@ -62,6 +62,11 @@ else
|
||||
echo
|
||||
fi
|
||||
|
||||
|
||||
# Try and build metisDecomp (has own logic)
|
||||
(cd metisDecomp && Allwmake)
|
||||
|
||||
|
||||
wmake $makeType decompositionMethods
|
||||
|
||||
wmake $makeType decompose
|
||||
|
||||
21
src/parallel/decompose/metisDecomp/Allwmake
Executable file
21
src/parallel/decompose/metisDecomp/Allwmake
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
makeType=${1:-libso}
|
||||
|
||||
# get METIS_VERSION, METIS_ARCH_PATH
|
||||
if settings=`$WM_PROJECT_DIR/bin/foamEtcFile config/metis.sh`
|
||||
then
|
||||
. $settings
|
||||
echo "using METIS_ARCH_PATH=$METIS_ARCH_PATH"
|
||||
if [ -r $METIS_ARCH_PATH/lib/libmetis.so ]
|
||||
then
|
||||
wmake $makeType
|
||||
fi
|
||||
else
|
||||
echo
|
||||
echo "Error: no config/metis.sh settings"
|
||||
echo
|
||||
fi
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -1,7 +1,6 @@
|
||||
EXE_INC = \
|
||||
-I$(WM_THIRD_PARTY_DIR)/metis-5.0pre2/include \
|
||||
-I../../dummyThirdParty/metisDecomp /* location of dummy metis.h */ \
|
||||
-I$(METIS_ARCH_PATH)/include \
|
||||
-I../decompositionMethods/lnInclude
|
||||
|
||||
LIB_LIBS = \
|
||||
-L$(FOAM_EXT_LIBBIN) -lmetis -lGKlib
|
||||
-L$(METIS_ARCH_PATH)/lib -lmetis
|
||||
|
||||
Reference in New Issue
Block a user