From bdc98f4dc9a2a10a6b00d818739dff73115835a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Thu, 9 Mar 2023 15:58:50 +0100
Subject: [PATCH] Fix in install openmpi.

---
 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 7e78413..b5ef033 100644
--- a/templates/build_icon.sh
+++ b/templates/build_icon.sh
@@ -29,7 +29,7 @@ source ${SPACK_ENV}
 if [ $( spack find icon-nwp@${ICON_VERSION} &> /dev/null ; echo $? ) -ne 0 ]; then
         echo "Installing icon-nwp@${ICON_VERSION}."
         # Compile openmpi with schedulers=slurm
-        spack install openmpi${SPACK_COMPILER}+legacylaunchers schedulers=slurm
+        spack install openmpi%${SPACK_COMPILER}+legacylaunchers schedulers=slurm
         spack install icon-nwp@${ICON_VERSION}%${SPACK_COMPILER} ^openmpi%${SPACK_COMPILER}
 else
         echo "icon-nwp@${ICON_VERSION} already installed!"
-- 
GitLab