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

bier

parent 08b437ba
No related branches found
No related tags found
No related merge requests found
Pipeline #19838 canceled
......@@ -92,9 +92,9 @@ class IconNwp(Package):
url = "{}://{}:{}@{}/{}".format(parsed.scheme, user, password, parsed.netloc, parsed.path)
if "+lmu" in self.spec:
self.fetcher[0].url = self.git = "https://gitlab.physik.uni-muenchen.de/LDAP_w2w-b3/icon.git"
self.fetcher.url = self.git = "https://gitlab.physik.uni-muenchen.de/LDAP_w2w-b3/icon.git"
else:
self.fetcher[0].url = self.git = url
self.fetcher.url = self.git = url
super(IconNwp, self).do_fetch(mirror_only)
......
......@@ -55,3 +55,13 @@ if [ ! -f "${definitions_tar_file}" ]; then
# Create a file containing the environment variable that needs to be set in order to use DWD's definitions:
echo "export ECCODES_DEFINITION_PATH=${WORKDIR}/definitions.edzw-${eccodes_version}-1" >eccodes_defs.env
fi
# Build dwd-icon-tools
SPACK_BUILD_ECCODES="%ECCODES.BUILD_CMD%" #"eccodes %%SPACK.COMPILER%target=x86_64_v2"
#if [ "${SPACK_LOAD_ECCODES}" == "build_cmd" ]; then SPACK_LOAD_DWDICONTOOLS=${SPACK_BUILD_DWDICONTOOLS}; fi
if [ ! -z "$SPACK_BUILD_ECCODES" ]; then
spack install --reuse $SPACK_BUILD_ECCODES
spack load --first ${SPACK_BUILD_ECCODES}
fi
......@@ -16,8 +16,8 @@ if [ "${IC_DATA_IS_LOCAL}" != "True" ]; then
load_spack "%spack.init%" "%spack.root%" "%spack.url%" "%spack.branch%" "%spack.externals%" "%spack.compiler%" "%spack.disable_local_config%" "%spack.user_cache_path%" "%spack.user_config_path%" "%spack.upstreams%"
# Load icon module
spack load --first eccodes
spack load --first dwd-icon-tools
spack load --first %ECCODES.BUILD_CMD%
spack load --first %ECCODES.LOAD_CMD%
# Set environment variable for eccodes-dwd definitions:
source ${WORKDIR}/eccodes_defs.env
......
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