Skip to content
Snippets Groups Projects
Commit 06866908 authored by Takumi.Matsunobu's avatar Takumi.Matsunobu
Browse files

Merge remote-tracking branch 'origin/master' into D2_takumi

parents 1c738b7a e2e35d31
No related branches found
No related tags found
No related merge requests found
Pipeline #19104 canceled
......@@ -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
......
......@@ -125,6 +125,10 @@ icon:
build_cmd: "icon-nwp@%ICON.VERSION%% %SPACK.COMPILER%+debug~mpichecks target=x86_64_v2 source=dkrz_https"
version: ${ICON_VERSION}
dwdicontools:
build_cmd: "dwd-icon-tools% %SPACK.COMPILER%"
load_cmd: build_cmd
data_management:
# Where do we put the output files afterwards?
local_destination_folder: $OUTPUTDIR/
......
......@@ -69,6 +69,7 @@ class DwdIconTools(Package):
def install(self, spec, prefix):
options = [
f"--prefix={prefix}",
"--with-eccodes=yes",
"--enable-grib2",
"--enable-iso-c-interface",
f"--with-netcdf={spec['netcdf-c'].prefix}"
......
......@@ -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