From 53d3c6f0c092ef9dc4cd69438db2ec4f12b5302b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Thu, 9 Mar 2023 13:09:12 +0100
Subject: [PATCH] Install icon-nwp with an mpi version with slurm.

---
 templates/build_icon.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/build_icon.sh b/templates/build_icon.sh
index def60f0..f2e7ce6 100644
--- a/templates/build_icon.sh
+++ b/templates/build_icon.sh
@@ -26,7 +26,7 @@ source ${SPACK_ENV}
 
 # If the model is not installed, install it.
 if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then
-  spack install icon-nwp@${ICON_VERSION}
+  spack install icon-nwp@${ICON_VERSION} ^mpi+slurm
 fi
 
 if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then
-- 
GitLab