diff options
author | Jon Rood <jon.rood@nrel.gov> | 2018-01-02 18:42:47 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-01-02 19:42:47 -0600 |
commit | e1e24ff80e9ff9b21fdbf6f594a55a984fabf243 (patch) | |
tree | ad5ee542b29eba6a9979e23755bb77bb15fd2535 /var/spack/repos/builtin/packages/nalu | |
parent | fef93d2221b370b54d33ae432f97a33f6e7b70e4 (diff) | |
download | spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.tar.gz spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.tar.bz2 spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.tar.xz spack-e1e24ff80e9ff9b21fdbf6f594a55a984fabf243.zip |
Adding option to build Nalu with Hypre support. (#6782)
Diffstat (limited to 'var/spack/repos/builtin/packages/nalu')
-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 |