From 0812a04a698011aafa7b39fb6cfca4b62fc7259b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3=20Prims?= <oriol.tinto@lmu.de> Date: Fri, 24 Mar 2023 14:18:30 +0100 Subject: [PATCH] Use spack_utils. --- templates/common/run_icon.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/common/run_icon.sh b/templates/common/run_icon.sh index 1a5fec3..a1ceaf1 100644 --- a/templates/common/run_icon.sh +++ b/templates/common/run_icon.sh @@ -12,8 +12,9 @@ RUNDIR=${WORKDIR}/${STARTDATE}/${MEMBER} cd ${RUNDIR} # Activate spack -SPACK_ENV=${WORKDIR}/spack/share/spack/setup-env.sh -source ${SPACK_ENV} +. ${WORKDIR}/proj/platforms/common/spack_utils.sh +load_spack "%spack.init%" "%spack.root%" "%spack.url%" "%spack.branch%" "%spack.compiler%" "%spack.disable_local_config%" "%spack.user_cache_path%" "%spack.user_config_path%" + # Load icon module spack load icon-nwp@%ICON_VERSION% -- GitLab