diff options
author | Cody Balos <cjbalos@gmail.com> | 2019-04-11 08:43:11 -0700 |
---|---|---|
committer | Satish Balay <balay@mcs.anl.gov> | 2019-04-11 10:43:11 -0500 |
commit | 0d0358733d09935fb4b1c16db24db3c25064e83c (patch) | |
tree | 0dec7783b575f0b4f834aa3650a8f3c05c186666 /var | |
parent | d0e281e2013702b59a1826173d5350447c7ca048 (diff) | |
download | spack-0d0358733d09935fb4b1c16db24db3c25064e83c.tar.gz spack-0d0358733d09935fb4b1c16db24db3c25064e83c.tar.bz2 spack-0d0358733d09935fb4b1c16db24db3c25064e83c.tar.xz spack-0d0358733d09935fb4b1c16db24db3c25064e83c.zip |
amrex: add sundials variant (#11147)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/amrex/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py index 0d58316418..334c78c951 100644 --- a/var/spack/repos/builtin/packages/amrex/package.py +++ b/var/spack/repos/builtin/packages/amrex/package.py @@ -44,9 +44,12 @@ class Amrex(CMakePackage): variant('build_type', default='Release', description='The build type to build', values=('Debug', 'Release')) + variant('sundials', default=False, + description='Build AMReX with SUNDIALS support') # Build dependencies depends_on('mpi', when='+mpi') + depends_on('sundials@4.0.0:4.1.0 +ARKODE +CVODE', when='@develop +sundials') depends_on('python@2.7:', type='build') depends_on('cmake@3.5:', type='build', when='@:18.10.99') depends_on('cmake@3.13:', type='build', when='@18.11:') @@ -69,6 +72,7 @@ class Amrex(CMakePackage): '-DENABLE_LINEAR_SOLVERS:BOOL=%s' % self.cmake_is_on('+linear_solvers'), '-DENABLE_AMRDATA:BOOL=%s' % self.cmake_is_on('+amrdata'), - '-DENABLE_PARTICLES:BOOL=%s' % self.cmake_is_on('+particles') + '-DENABLE_PARTICLES:BOOL=%s' % self.cmake_is_on('+particles'), + '-DENABLE_SUNDIALS:BOOL=%s' % self.cmake_is_on('+sundials') ] return args |