diff options
author | Ashwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com> | 2023-03-30 18:15:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 18:15:04 +0200 |
commit | 709c5c48449c7d4f969cf5d940f78a4a341d7ab3 (patch) | |
tree | 9f9674cb6d1b3997b373a87f90345e3e916cae05 | |
parent | e356390575529ef18505a81990c40aab201a3393 (diff) | |
download | spack-709c5c48449c7d4f969cf5d940f78a4a341d7ab3.tar.gz spack-709c5c48449c7d4f969cf5d940f78a4a341d7ab3.tar.bz2 spack-709c5c48449c7d4f969cf5d940f78a4a341d7ab3.tar.xz spack-709c5c48449c7d4f969cf5d940f78a4a341d7ab3.zip |
octopus: add etsf-io variant (#36490)
-rw-r--r-- | var/spack/repos/builtin/packages/octopus/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py index 3d6c4be06a..42ec5f7b95 100644 --- a/var/spack/repos/builtin/packages/octopus/package.py +++ b/var/spack/repos/builtin/packages/octopus/package.py @@ -59,6 +59,7 @@ class Octopus(AutotoolsPackage, CudaPackage): variant("libvdwxc", default=False, description="Compile with libvdwxc") variant("libyaml", default=False, description="Compile with libyaml") variant("elpa", default=False, description="Compile with ELPA") + variant("etsf-io", default=False, description="Compile with etsf-io") variant("nlopt", default=False, description="Compile with nlopt") variant( "pnfft", @@ -100,6 +101,7 @@ class Octopus(AutotoolsPackage, CudaPackage): depends_on("elpa~mpi", when="+elpa") depends_on("netcdf-fortran ^netcdf-c~~mpi", when="+netcdf") + depends_on("etsf-io", when="+etsf-io") depends_on("py-numpy", when="+python") depends_on("py-mpi4py", when="+python") depends_on("metis@5:+int64", when="+metis") @@ -225,6 +227,8 @@ class Octopus(AutotoolsPackage, CudaPackage): args.append("--enable-python") # --with-etsf-io-prefix= + if "+etsf-io" in spec: + args.append("--with-etsf-io-prefix=%s" % spec["etsf-io"].prefix) # --with-sparskit=${prefix}/lib/libskit.a # --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix} # --with-berkeleygw-prefix=${prefix} |