diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/nalu/package.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/nalu/package.py b/var/spack/repos/builtin/packages/nalu/package.py index 4a7ca67897..b7b9ea4666 100644 --- a/var/spack/repos/builtin/packages/nalu/package.py +++ b/var/spack/repos/builtin/packages/nalu/package.py @@ -41,15 +41,18 @@ class Nalu(CMakePackage): description='Compile with OpenFAST support') variant('tioga', default=False, description='Compile with Tioga support') + variant('hypre', default=False, + description='Compile with Hypre support') version('master', git='https://github.com/NaluCFD/Nalu.git', branch='master') - # Currently Nalu only builds static libraries; To be fixed soon + # Currently Nalu only builds with certain libraries statically depends_on('yaml-cpp+pic~shared@0.5.3:') depends_on('trilinos~shared+exodus+tpetra+muelu+belos+ifpack2+amesos2+zoltan+stk+boost~superlu-dist+superlu+hdf5+zlib+pnetcdf+shards@master,12.12.1:') depends_on('openfast+cxx', when='+openfast') depends_on('tioga', when='+tioga') + depends_on('hypre+mpi+int64~shared', when='+hypre') def cmake_args(self): spec = self.spec @@ -73,4 +76,10 @@ class Nalu(CMakePackage): '-DTIOGA_DIR:PATH=%s' % spec['tioga'].prefix ]) + if '+hypre' in spec: + options.extend([ + '-DENABLE_HYPRE:BOOL=ON', + '-DHYPRE_DIR:PATH=%s' % spec['hypre'].prefix + ]) + return options |