diff options
author | Ashwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com> | 2023-10-27 14:24:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 14:24:44 +0200 |
commit | 3fff8be929b8ce18e8e5e40344c05c415ebd23d2 (patch) | |
tree | b199df58b70ca5d8816a1bba3c469bde98f65f8e /var | |
parent | 1bf758a784890d3f85d08f9646c4b21c5ab4ddc0 (diff) | |
download | spack-3fff8be929b8ce18e8e5e40344c05c415ebd23d2.tar.gz spack-3fff8be929b8ce18e8e5e40344c05c415ebd23d2.tar.bz2 spack-3fff8be929b8ce18e8e5e40344c05c415ebd23d2.tar.xz spack-3fff8be929b8ce18e8e5e40344c05c415ebd23d2.zip |
octopus: split netcdf-c and netcdf-fortran dependency (#40685)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/octopus/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py index 5ce974edfa..8a88711dad 100644 --- a/var/spack/repos/builtin/packages/octopus/package.py +++ b/var/spack/repos/builtin/packages/octopus/package.py @@ -93,13 +93,14 @@ class Octopus(AutotoolsPackage, CudaPackage): depends_on("libxc@2:4", when="@8:9") depends_on("libxc@5.1.0:", when="@10:") depends_on("libxc@5.1.0:", when="@develop") + depends_on("netcdf-fortran", when="+netcdf") # NetCDF fortran lib without mpi variant with when("+mpi"): # list all the parallel dependencies depends_on("fftw@3:+mpi+openmp", when="@8:9") # FFT library depends_on("fftw-api@3:+mpi+openmp", when="@10:") depends_on("libvdwxc+mpi", when="+libvdwxc") depends_on("arpack-ng+mpi", when="+arpack") depends_on("elpa+mpi", when="+elpa") - depends_on("netcdf-fortran ^netcdf-c+mpi", when="+netcdf") + depends_on("netcdf-c+mpi", when="+netcdf") # Link dependency of NetCDF fortran lib depends_on("berkeleygw@2.1+mpi", when="+berkeleygw") with when("~mpi"): # list all the serial dependencies @@ -108,7 +109,7 @@ class Octopus(AutotoolsPackage, CudaPackage): depends_on("libvdwxc~mpi", when="+libvdwxc") depends_on("arpack-ng~mpi", when="+arpack") depends_on("elpa~mpi", when="+elpa") - depends_on("netcdf-fortran ^netcdf-c~~mpi", when="+netcdf") + depends_on("netcdf-c~~mpi", when="+netcdf") # Link dependency of NetCDF fortran lib depends_on("berkeleygw@2.1~mpi", when="+berkeleygw") depends_on("etsf-io", when="+etsf-io") |