summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2018-01-02 18:42:47 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-02 19:42:47 -0600
commite1e24ff80e9ff9b21fdbf6f594a55a984fabf243 (patch)
treead5ee542b29eba6a9979e23755bb77bb15fd2535
parentfef93d2221b370b54d33ae432f97a33f6e7b70e4 (diff)
downloadspack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.tar.gz
spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.tar.bz2
spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.tar.xz
spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.zip
Adding option to build Nalu with Hypre support. (#6782)
-rw-r--r--var/spack/repos/builtin/packages/nalu/package.py11
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