Skip to content

Commit

Permalink
amr-wind: add latest versions and correct waves2amr details (spack#44099
Browse files Browse the repository at this point in the history
)

* add latest versions and correct waves2amr details

* update commit associated with v2.1.0
  • Loading branch information
mbkuhn authored May 13, 2024
1 parent 8e9adef commit 7f3dd38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions var/spack/repos/builtin/packages/amr-wind/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage):
license("BSD-3-Clause")

version("main", branch="main", submodules=True)
version(
"2.1.0", tag="v2.1.0", commit="bc787f21deca9239928182e27400133934c62658", submodules=True
)
version(
"2.0.0", tag="v2.0.0", commit="ea448365033fc6bc9ee0febeb369b377f4fd8240", submodules=True
)
version(
"1.4.0", tag="v1.4.0", commit="bdddf133e41a9b7b4c8ce28f1ea1bebec47678f5", submodules=True
)
Expand Down Expand Up @@ -91,7 +97,7 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage):
depends_on("[email protected]:", when="@2: +openfast")
depends_on("helics@:3.3.2", when="+helics")
depends_on("helics@:3.3.2+mpi", when="+helics+mpi")
depends_on("fftw", when="@2: +waves2amr")
depends_on("fftw", when="@2.1: +waves2amr")

for arch in CudaPackage.cuda_arch_values:
depends_on("hypre+cuda cuda_arch=%s" % arch, when="+cuda+hypre cuda_arch=%s" % arch)
Expand All @@ -104,7 +110,7 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage):

conflicts("+openmp", when="+cuda")
conflicts("+shared", when="+cuda")
conflicts("@:1.4.0", when="+waves2amr")
conflicts("@:2.0", when="+waves2amr")

def setup_build_environment(self, env):
# Avoid compile errors with Intel interprocedural optimization
Expand Down

0 comments on commit 7f3dd38

Please sign in to comment.