diff options
author | Satish Balay <balay@mcs.anl.gov> | 2019-04-12 09:46:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 09:46:23 -0500 |
commit | 832a1ddbaad08b0716d33a6cd78f7a48457ee9c3 (patch) | |
tree | 1d1fb2572652d772f61fb0792d3ec26e33a5abcb | |
parent | 1eab6e3c865836d209db4621d0cd44bc8663656b (diff) | |
download | spack-832a1ddbaad08b0716d33a6cd78f7a48457ee9c3.tar.gz spack-832a1ddbaad08b0716d33a6cd78f7a48457ee9c3.tar.bz2 spack-832a1ddbaad08b0716d33a6cd78f7a48457ee9c3.tar.xz spack-832a1ddbaad08b0716d33a6cd78f7a48457ee9c3.zip |
petsc: add fftw variant (#11178)
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 9073ecf8b7..3d9686eb21 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -82,6 +82,8 @@ class Petsc(Package): variant('clanguage', default='C', values=('C', 'C++'), description='Specify C (recommended) or C++ to compile PETSc', multi=False) + variant('fftw', default=False, + description='Activates support for FFTW (only parallel)') variant('suite-sparse', default=False, description='Activates support for SuiteSparse') variant('knl', default=False, @@ -164,6 +166,7 @@ class Petsc(Package): depends_on('trilinos@12.6.2:', when='@3.7.0:+trilinos+mpi') depends_on('trilinos@xsdk-0.2.0', when='@xsdk-0.2.0+trilinos+mpi') depends_on('trilinos@develop', when='@xdevelop+trilinos+mpi') + depends_on('fftw+mpi', when='+fftw+mpi') depends_on('suite-sparse', when='+suite-sparse') depends_on('libx11', when='+X') @@ -264,7 +267,7 @@ class Petsc(Package): # Activates library support if needed for library in ('metis', 'hdf5', 'hypre', 'parmetis', - 'mumps', 'trilinos'): + 'mumps', 'trilinos', 'fftw'): options.append( '--with-{library}={value}'.format( library=library, value=('1' if library in spec else '0')) |