Skip to content
Snippets Groups Projects
Commit 83b09a38 authored by Oriol Tintó Prims's avatar Oriol Tintó Prims
Browse files

Getting the proper eccodes version in build_icon.sh

parent c3e8da2e
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
# Get some variables provided by autosubmit. # Get some variables provided by autosubmit.
# TODO: What do we do to ensure that these variables are defined in the proj file? # TODO: What do we do to ensure that these variables are defined in the proj file?
WORKDIR=%HPCROOTDIR% WORKDIR=%HPCROOTDIR%
ICON_VERSION=%ICON.VERSION%
COMPILER=%SPACK.COMPILER%
# If the workdir directory does not exist create it # If the workdir directory does not exist create it
if [ ! -d ${WORKDIR} ]; then if [ ! -d ${WORKDIR} ]; then
...@@ -33,7 +35,7 @@ else ...@@ -33,7 +35,7 @@ else
fi fi
# Need to get ECCODES DWD definitions: # Need to get ECCODES DWD definitions:
eccodes_version=$(spack find eccodes | grep eccodes@ | cut -d "@" -f 2) eccodes_version=$(spack spec icon-nwp@${ICON_VERSION}%${COMPILER} | grep eccodes | grep -o "@.*%" | grep -o "[0-9\.]*")
definitions_tar_file=eccodes_definitions.edzw-${eccodes_version}-1.tar.bz2 definitions_tar_file=eccodes_definitions.edzw-${eccodes_version}-1.tar.bz2
if [ ! -f "${definitions_tar_file}" ]; then if [ ! -f "${definitions_tar_file}" ]; then
......
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