From: Wendi-L Date: Fri, 2 Dec 2022 21:29:25 +0000 (+0000) Subject: fix bug on metis USE_64_BIT_INDICES X-Git-Tag: v9.4.2-r1~4^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fab5fbabff0e235a6242def056e69cc95f8d189f;p=candi.git fix bug on metis USE_64_BIT_INDICES --- diff --git a/deal.II-toolchain/packages/parmetis.package b/deal.II-toolchain/packages/parmetis.package index 99cc283..bc0e38c 100644 --- a/deal.II-toolchain/packages/parmetis.package +++ b/deal.II-toolchain/packages/parmetis.package @@ -7,6 +7,28 @@ BUILDCHAIN=custom INSTALL_PATH=${INSTALL_PATH}/${NAME} +if [ ${USE_64_BIT_INDICES} = ON ]; then + + echo " +--- metis/include/metis.h 2013-03-30 16:24:50.000000000 +0000 ++++ metis/include/metis.h 2022-11-27 16:14:07.863359070 +0000 +@@ -30,7 +30,7 @@ + GCC does provides these definitions in stdint.h, but it may require some + modifications on other architectures. + --------------------------------------------------------------------------*/ +-#define IDXTYPEWIDTH 32 ++#define IDXTYPEWIDTH 64 + + + /*-------------------------------------------------------------------------- +@@ -40,7 +40,7 @@ + 32 : single precission floating point (float) + 64 : double precission floating point (double) + --------------------------------------------------------------------------*/ +-#define REALTYPEWIDTH 32 ++#define REALTYPEWIDTH 64" | tee -a ${ORIG_DIR}/${PROJECT}/patches/parmetis-4.0.3-build.patch +fi + package_specific_build() { cp -rf ${UNPACK_PATH}/${EXTRACTSTO}/* .