Well - this was the previous default - and was removed as it was deemed unnecessary.
https://bitbucket.org/petsc/petsc/commits/2d4f01c230fe350f0ab5a28d1f5ef05ceab7ea3d The attached patch provides --download-metis-use-doubleprecision option Satish On Thu, 10 Jan 2019, Matthew Overholt via petsc-users wrote: > Hello, > > How does one configure the PETSc installation to download METIS and have it > use REALTYPEWIDTH 64 (as defined in metis.h)? I am using: > > --with-64-bit-indices --download-metis=yes > > to get IDXTYPEWIDTH 64. If I were installing METIS independently I would > set the following near the top of metis.h: #define > METIS_USE_DOUBLEPRECISION > > The reason for this is I want to call METIS routines outside of PETSc and > prefer double precision. > > Thanks, > Matt Overholt > CapeSym, Inc. >
diff --git a/config/BuildSystem/config/packages/metis.py b/config/BuildSystem/config/packages/metis.py index be348891e2..136526da05 100644 --- a/config/BuildSystem/config/packages/metis.py +++ b/config/BuildSystem/config/packages/metis.py @@ -12,6 +12,12 @@ class Configure(config.package.CMakePackage): self.hastests = 1 return + def setupHelp(self, help): + config.package.CMakePackage.setupHelp(self,help) + import nargs + help.addArgument('METIS', '-download-metis-use-doubleprecision=<bool>', nargs.ArgBool(None, 0, 'enable METIS_USE_DOUBLEPRECISION')) + return + def setupDependencies(self, framework): config.package.CMakePackage.setupDependencies(self, framework) self.compilerFlags = framework.require('config.compilerFlags', self) @@ -33,6 +39,8 @@ class Configure(config.package.CMakePackage): args.append('-DDEBUG=1') if self.getDefaultIndexSize() == 64: args.append('-DMETIS_USE_LONGINDEX=1') + if self.framework.argDB['download-metis-use-doubleprecision']: + args.append('-DMETIS_USE_DOUBLEPRECISION=1') args.append('-DMATH_LIB="'+self.libraries.toStringNoDupes(self.mathlib.lib)+'"') return args