summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Berger <lberge@sandia.gov>2024-04-08 10:39:51 -0600
committerGitHub <noreply@github.com>2024-04-08 10:39:51 -0600
commitb3cef1072d4ed08fe67705d8301a5a61c06008c2 (patch)
treedfa1313d3349bd062e97121d45f6b39a7a23b039
parente8ae9a403ca7db7738d36bf41bf99977b9c88a84 (diff)
downloadspack-b3cef1072d4ed08fe67705d8301a5a61c06008c2.tar.gz
spack-b3cef1072d4ed08fe67705d8301a5a61c06008c2.tar.bz2
spack-b3cef1072d4ed08fe67705d8301a5a61c06008c2.tar.xz
spack-b3cef1072d4ed08fe67705d8301a5a61c06008c2.zip
Nalu: updating Trilinos recipe a bit (#43471)
* Nalu: updating Trilinos recipe a bit Basic changes to build/install nalu properly using Spack. Some more changes would be nice for instance adding an option to build against Trilinos master or develop. Adding a dependency on googletest to avoid the annoying build failures in the unit-tests. * Nalu: adding release 1.6.0 Nalu v1.6.0 can build cleanly against Trilinos 14.0.0 with the proposed changes. The only other combo is master / master but than one is "floating" as these branch evolve over time. When a new Nalu comes out we might want to add another fixed version to keep this recipes up to date!
-rw-r--r--var/spack/repos/builtin/packages/nalu/package.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/nalu/package.py b/var/spack/repos/builtin/packages/nalu/package.py
index 0d3f3c9280..1610b4562f 100644
--- a/var/spack/repos/builtin/packages/nalu/package.py
+++ b/var/spack/repos/builtin/packages/nalu/package.py
@@ -15,9 +15,14 @@ class Nalu(CMakePackage):
"""
homepage = "https://github.com/NaluCFD/Nalu"
+ url = "https://github.com/NaluCFD/Nalu/archive/refs/tags/v1.6.0.tar.gz"
git = "https://github.com/NaluCFD/Nalu.git"
version("master", branch="master")
+ version("1.6.0", sha256="2eafafe25ed44a7bc1429881f8f944b9794ca51b1e1b29c28a45b91520c7cf97")
+
+ depends_on("trilinos@master", when="@master")
+ depends_on("trilinos@=14.0.0", when="@1.6.0")
# Options
variant(
@@ -31,16 +36,15 @@ class Nalu(CMakePackage):
# Required dependencies
depends_on("mpi")
- depends_on("yaml-cpp@0.5.3:", when="+shared")
- depends_on("yaml-cpp~shared@0.5.3:", when="~shared")
+ depends_on("yaml-cpp@0.5.3:0.6.2", when="+shared")
+ depends_on("yaml-cpp~shared@0.5.3:0.6.2", when="~shared")
# Cannot build Trilinos as a shared library with STK on Darwin
# which is why we have a 'shared' variant for Nalu
# https://github.com/trilinos/Trilinos/issues/2994
depends_on(
"trilinos"
- "+mpi+exodus+tpetra+muelu+belos+ifpack2+amesos2+zoltan+stk+boost"
- "~superlu-dist+superlu+hdf5+shards~hypre"
- "@master"
+ "+mpi+exodus+tpetra+muelu+belos+ifpack2+amesos2+zoltan+stk+boost+gtest"
+ "~superlu-dist+superlu+hdf5+shards~hypre gotype=long"
)
depends_on("trilinos~shared", when="~shared")
# Optional dependencies