mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
CONFIG: use metis 'native' size for float/double
- this follows the change to metisDecomp
This commit is contained in:
18
Allwmake
18
Allwmake
@ -369,28 +369,14 @@ then
|
|||||||
cd $METIS_VERSION || exit 1
|
cd $METIS_VERSION || exit 1
|
||||||
rm -rf $METIS_ARCH_PATH
|
rm -rf $METIS_ARCH_PATH
|
||||||
|
|
||||||
case "$WM_PRECISION_OPTION" in
|
# Adjust metis integer size to match OpenFOAM label-size
|
||||||
SP)
|
|
||||||
WM_SCALAR_SIZE=32
|
|
||||||
;;
|
|
||||||
DP)
|
|
||||||
WM_SCALAR_SIZE=64
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo " Metis pre-configure error:"
|
|
||||||
echo " WM_PRECISION_OPTION neither DP nor SP"
|
|
||||||
exit 1
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Change user settings automatically
|
|
||||||
sed -i -e 's=\(#define IDXTYPEWIDTH\).*=\1 '$WM_LABEL_SIZE'=' \
|
sed -i -e 's=\(#define IDXTYPEWIDTH\).*=\1 '$WM_LABEL_SIZE'=' \
|
||||||
-e 's=\(#define REALTYPEWIDTH\).*=\1 '$WM_SCALAR_SIZE'=' \
|
|
||||||
include/metis.h
|
include/metis.h
|
||||||
|
|
||||||
# No config option for the library location.
|
# No config option for the library location.
|
||||||
# - build normally and use mv to relocate it
|
# - build normally and use mv to relocate it
|
||||||
|
|
||||||
make config shared=true prefix=$METIS_ARCH_PATH \
|
make config shared=1 prefix=$METIS_ARCH_PATH \
|
||||||
&& make -j $WM_NCOMPPROCS install \
|
&& make -j $WM_NCOMPPROCS install \
|
||||||
&& mv $METIS_ARCH_PATH/lib/libmetis.so $FOAM_EXT_LIBBIN
|
&& mv $METIS_ARCH_PATH/lib/libmetis.so $FOAM_EXT_LIBBIN
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user