summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gardner <gardner48@llnl.gov>2018-02-09 06:29:10 -0500
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-02-09 12:29:10 +0100
commit9d304ad585e86c29863c4eb01e1fc34a3331b22e (patch)
treecb40f5d004894983e747a465b8e949a86af1bae6
parente98bcaf3f58d71b4356c6925ade3817cba15c99f (diff)
downloadspack-9d304ad585e86c29863c4eb01e1fc34a3331b22e.tar.gz
spack-9d304ad585e86c29863c4eb01e1fc34a3331b22e.tar.bz2
spack-9d304ad585e86c29863c4eb01e1fc34a3331b22e.tar.xz
spack-9d304ad585e86c29863c4eb01e1fc34a3331b22e.zip
fix petsc int64 metis dependencies (#7195)
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index c6aa7af2a5..c99a578fc8 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -113,10 +113,13 @@ class Petsc(Package):
# Other dependencies
depends_on('boost', when='@:3.5+boost')
- depends_on('metis@5:~int64+real64', when='+metis~int64+double')
- depends_on('metis@5:+int64', when='+metis+int64~double')
- depends_on('metis@5:~int64+real64', when='+metis~int64+double')
- depends_on('metis@5:+int64', when='+metis+int64~double')
+ depends_on('metis@5:~int64+real64', when='@:3.7.99+metis~int64+double')
+ depends_on('metis@5:~int64', when='@:3.7.99+metis~int64~double')
+ depends_on('metis@5:+int64+real64', when='@:3.7.99+metis+int64+double')
+ depends_on('metis@5:+int64', when='@:3.7.99+metis+int64~double')
+ # petsc-3.8+ uses default (float) metis with any (petsc) precision
+ depends_on('metis@5:~int64', when='@3.8:+metis~int64')
+ depends_on('metis@5:+int64', when='@3.8:+metis+int64')
depends_on('hdf5+mpi+hl', when='+hdf5+mpi')
depends_on('zlib', when='+hdf5')