diff options
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index b0b9b85911..b2ded43d95 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -113,7 +113,8 @@ class Petsc(Package): depends_on('metis@5:~int64+real64', when='+metis~int64+double') depends_on('metis@5:+int64', when='+metis+int64~double') - depends_on('hdf5+mpi', when='+hdf5+mpi') + depends_on('hdf5+mpi+hl', when='+hdf5+mpi') + depends_on('zlib', when='+hdf5') depends_on('parmetis', when='+metis+mpi') # Hypre does not support complex numbers. # Also PETSc prefer to build it without internal superlu, likely due to @@ -211,7 +212,7 @@ class Petsc(Package): # Activates library support if needed for library in ('metis', 'boost', 'hdf5', 'hypre', 'parmetis', - 'mumps', 'trilinos'): + 'mumps', 'trilinos', 'zlib'): options.append( '--with-{library}={value}'.format( library=library, value=('1' if library in spec else '0')) |