summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/octopus/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py
index 458cbebc64..3d6c4be06a 100644
--- a/var/spack/repos/builtin/packages/octopus/package.py
+++ b/var/spack/repos/builtin/packages/octopus/package.py
@@ -46,6 +46,11 @@ class Octopus(AutotoolsPackage, CudaPackage):
variant("arpack", default=False, description="Compile with ARPACK")
variant("cgal", default=False, description="Compile with CGAL library support")
variant("pfft", default=False, when="+mpi", description="Compile with PFFT")
+ variant(
+ "nfft",
+ default=False,
+ description="Compile with NFFT - Nonequispaced Fast Fourier Transform library",
+ )
# poke here refers to https://gitlab.e-cam2020.eu/esl/poke
# variant('poke', default=False,
# description='Compile with poke (not available in spack yet)')
@@ -102,6 +107,7 @@ class Octopus(AutotoolsPackage, CudaPackage):
depends_on("scalapack", when="+scalapack")
depends_on("cgal", when="+cgal")
depends_on("pfft", when="+pfft")
+ depends_on("nfft@3.2.4", when="+nfft")
depends_on("likwid", when="+likwid")
depends_on("libyaml", when="+libyaml")
depends_on("pnfft", when="+pnfft")
@@ -190,6 +196,9 @@ class Octopus(AutotoolsPackage, CudaPackage):
if "+pfft" in spec:
args.append("--with-pfft-prefix=%s" % spec["pfft"].prefix)
+ if "+nfft" in spec:
+ args.append("--with-nfft=%s" % spec["nfft"].prefix)
+
# if '+poke' in spec:
# args.extend([
# '--with-poke-prefix=%s' % spec['poke'].prefix,