diff --git a/templates/common/run_icon.sh b/templates/common/run_icon.sh index 1a5fec30d901590072f9aa3135292dba299a6bfd..a1ceaf1b74c4279d8a5b87d8662ac0b82643b315 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%