Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2w
autoicon
Commits
c3e8da2e
Commit
c3e8da2e
authored
2 years ago
by
Oriol Tintó Prims
Browse files
Options
Downloads
Patches
Plain Diff
Fix eccodes definitions in build_icon.sh
parent
0148742b
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Switching to the advanced configuration method and fixing spack build.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/common/build_icon.sh
+4
-5
4 additions, 5 deletions
templates/common/build_icon.sh
with
4 additions
and
5 deletions
templates/common/build_icon.sh
+
4
−
5
View file @
c3e8da2e
# Get some variables provided by autosubmit.
# TODO: What do we do to ensure that these variables are defined in the proj file?
WORKDIR
=
%HPCROOTDIR%
ICON_VERSION
=
%icon.version%
# If the workdir directory does not exist create it
if
[
!
-d
${
WORKDIR
}
]
;
then
...
...
@@ -9,7 +8,7 @@ if [ ! -d ${WORKDIR} ]; then
fi
# Go to the working directory
cd
${
WORKDIR
}
cd
${
WORKDIR
}
||
exit
.
${
WORKDIR
}
/proj/platforms/common/spack_utils.sh
...
...
@@ -37,12 +36,12 @@ fi
eccodes_version
=
$(
spack find eccodes |
grep
eccodes@ |
cut
-d
"@"
-f
2
)
definitions_tar_file
=
eccodes_definitions.edzw-
${
eccodes_version
}
-1
.tar.bz2
if
[
!
-f
${
definitions_tar_file
}
]
;
then
if
[
!
-f
"
${
definitions_tar_file
}
"
]
;
then
defs_url
=
https://opendata.dwd.de/weather/lib/grib/
${
definitions_tar_file
}
wget
${
defs_url
}
wget
"
${
defs_url
}
"
# Decompress definitions file
tar
-xf
${
definitions_tar_file
}
tar
-xf
"
${
definitions_tar_file
}
"
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment