Skip to content
Snippets Groups Projects
Commit d12d5917 authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

update install of dwd icon tools, now allowing to use hashed compiler versions

parent 8c74fdb9
No related branches found
No related tags found
No related merge requests found
Pipeline #19037 failed
......@@ -31,6 +31,11 @@ icon:
load_cmd: build_cmd
version: master # The latest release at the moment of creating this file was 2.6.5-nwp0
dwdicontools:
build_cmd: "dwd-icon-tools% %SPACK.COMPILER%"
load_cmd: build_cmd
python_environment:
# Name of the virtual environment in the remote platform experiment folder
folder_name: python_environment
......
......@@ -49,7 +49,13 @@ else
fi
# Build dwd-icon-tools
spack install dwd-icon-tools % "%spack.compiler%"
SPACK_BUILD_DWDICONTOOLS="%DWDICONTOOLS.BUILD_CMD%"
SPACK_LOAD_DWDICONTOOLS="%DWDICONTOOLS.LOAD_CMD%"
if [ "${SPACK_LOAD_DWDICONTOOLS}" == "build_cmd" ]; then SPACK_LOAD_DWDICONTOOLS=${SPACK_BUILD_DWDICONTOOLS}; fi
if [ ! -z "$SPACK_BUILD_DWDICONTOOLS" ]; then
spack install --reuse $SPACK_BUILD_DWDICONTOOLS
spack load --first ${SPACK_LOAD_DWDICONTOOLS}
fi
# Need to get ECCODES DWD definitions:
eccodes_version=$(spack spec $SPACK_BUILD_ICON | grep eccodes | grep -o "@.*%" | grep -o "[0-9\.]*")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment