From e356390575529ef18505a81990c40aab201a3393 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com> Date: Thu, 30 Mar 2023 18:04:29 +0200 Subject: octopus: Add NFFT variant (#36489) --- var/spack/repos/builtin/packages/octopus/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'var') 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, -- cgit v1.2.3-60-g2f50