diff options
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 |