mfem: adjusted dependencies on hypre (4.2 compiles with hypre up to 2.20) (#24611)

This commit is contained in:
Olivier Cessenat 2021-07-02 09:32:31 +02:00 committed by GitHub
parent 8089b86dc2
commit f88d90e432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,12 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import os
import shutil
import sys
from spack import *
class Mfem(Package, CudaPackage, ROCmPackage):
"""Free, lightweight, scalable C++ library for finite element methods."""
@ -195,7 +196,8 @@ class Mfem(Package, CudaPackage, ROCmPackage):
depends_on('mpi', when='+mpi')
depends_on('hypre@2.10.0:2.13.99', when='@:3.3.99+mpi')
depends_on('hypre', when='@3.4:+mpi')
depends_on('hypre@:2.20.0', when='@3.4:4.2.99+mpi')
depends_on('hypre', when='@4.3.0:+mpi')
depends_on('metis', when='+metis')
depends_on('blas', when='+lapack')