]> https://gitweb.dealii.org/ - candi.git/commitdiff
fix bug on metis USE_64_BIT_INDICES
authorWendi-L <wendi.liu1988@icloud.com>
Fri, 2 Dec 2022 21:29:25 +0000 (21:29 +0000)
committerWendi-L <wendi.liu1988@icloud.com>
Fri, 2 Dec 2022 21:29:25 +0000 (21:29 +0000)
deal.II-toolchain/packages/parmetis.package

index 99cc283c0b217bc0a7a760eb7e1e760c9a016b14..bc0e38cd216cd514d0bedfbc0c0d4521d20a3d76 100644 (file)
@@ -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}/* .
     

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.