petsc/petsc-3.13.0-fix_metis64.patch

34 lines
1.7 KiB
Diff
Raw Normal View History

2020-04-10 15:49:10 +00:00
--- a/config/BuildSystem/config/packages/metis.orig.py 2020-03-29 16:29:06.000000000 +0200
+++ b/config/BuildSystem/config/packages/metis.py 2020-04-03 18:00:37.013851959 +0200
@@ -8,8 +8,8 @@
self.download = ['git://https://bitbucket.org/petsc/pkg-metis.git','https://bitbucket.org/petsc/pkg-metis/get/'+self.gitcommit+'.tar.gz']
self.downloaddirnames = ['petsc-pkg-metis']
self.functions = ['METIS_PartGraphKway']
- self.includes = ['metis.h']
- self.liblist = [['libmetis.a'],['libmetis.a','libexecinfo.a']]
+ self.includes = ['metis64.h']
+ self.liblist = [['libmetis64.a'],['libmetis64.a','libexecinfo.a']]
self.hastests = 1
self.useddirectly = 0
return
@@ -50,7 +50,7 @@
config.package.Package.configureLibrary(self)
oldFlags = self.compilers.CPPFLAGS
self.compilers.CPPFLAGS += ' '+self.headers.toString(self.include)
- if not self.checkCompile('#include "metis.h"', '#if (IDXTYPEWIDTH != '+ str(self.getDefaultIndexSize())+')\n#error incompatible IDXTYPEWIDTH\n#endif'):
+ if not self.checkCompile('#include "metis64.h"', '#if (IDXTYPEWIDTH != '+ str(self.getDefaultIndexSize())+')\n#error incompatible IDXTYPEWIDTH\n#endif'):
if self.defaultIndexSize == 64:
msg= '--with-64-bit-indices option requires a metis build with IDXTYPEWIDTH=64.\n'
else:
2023-02-23 21:37:47 +00:00
--- a/src/mat/order/metisnd/metisnd.orig.c 2022-06-29 08:00:07.000000000 +0200
+++ b/src/mat/order/metisnd/metisnd.c 2023-02-23 22:35:55.373271745 +0100
@@ -1,7 +1,7 @@
#include <petscmat.h>
#include <petsc/private/matorderimpl.h>
-#include <metis.h>
+#include <metis64.h>
/*
MatGetOrdering_METISND - Find the nested dissection ordering of a given matrix.