Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Singularity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Singularity
Commits
8d6ac902
Commit
8d6ac902
authored
2 years ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
wrf bug fix
parent
f0c30feb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
models/WRF/Makefile
+1
-1
1 addition, 1 deletion
models/WRF/Makefile
models/WRF/Singularity.dev
+24
-12
24 additions, 12 deletions
models/WRF/Singularity.dev
with
25 additions
and
13 deletions
models/WRF/Makefile
+
1
−
1
View file @
8d6ac902
...
...
@@ -16,7 +16,7 @@ wrf.dev:
@
if
[
!
-f
./wrf.dev.sif
]
;
then
\
echo
Building the WRF dev
;
\
make
-C
../.. alma8.base
;
\
ln
-s
../../containers/alma8.base .
;
\
ln
-s
../../containers/alma8.base
.sif
.
;
\
sudo
singularity build wrf.dev.sif Singularity.dev
;
\
fi
@
[
-f
./wrf.dev.sif
]
&&
echo
Exists: WRF dev
||
true
...
...
This diff is collapsed.
Click to expand it.
models/WRF/Singularity.dev
+
24
−
12
View file @
8d6ac902
...
...
@@ -5,21 +5,32 @@ From: alma8.base.sif
maintainer IT-IMGW <it.img-wien@univie.ac.at>
baseimage AlmaLinux8
%apprun downloadwrf
WRF_VERSION=4.4.1
if [ $# -ne 0 ]; then
WRF_VERSION=1
fi
echo "[WRF.dev] Downloading WRF $WRF_VERSION from github:"
curl -SL https://github.com/wrf-model/WRF/releases/download/v${WRF_VERSION}/v${WRF_VERSION}.tar.gz
WRF_VERSION=4.4.1
if [ $# -ne 0 ]; then
WRF_VERSION=1
fi
echo "[WRF.dev] Downloading WRF $WRF_VERSION from github:"
curl -SL -o WRF-${WRF_VERSION}.tar.gz https://github.com/wrf-model/WRF/releases/download/v${WRF_VERSION}/v${WRF_VERSION}.tar.gz
%apphelp downloadwrf
This will download the WRF source code from GitHub. Use the Version as a commandline argument.
curl -SL -o WRF-{WRF_VERSION}.tar.gz https://github.com/wrf-model/WRF/releases/download/v{WRF_VERSION}/v{WRF_VERSION}.tar.gz
%apprun downloadwps
WPS_VERSION=4.4
if [ $# -ne 0 ]; then
WPS_VERSION=1
fi
echo "[WRF.dev] Downloading WPS $WPS_VERSION from github:"
curl -SL https://github.com/wrf-model/WPS/archive/refs/tags/v${WPS_VERSION}.tar.gz
WPS_VERSION=4.4
if [ $# -ne 0 ]; then
WPS_VERSION=1
fi
echo "[WRF.dev] Downloading WPS $WPS_VERSION from github:"
curl -SL -o WPS-${WPS_VERSION}.tar.gz https://github.com/wrf-model/WPS/archive/refs/tags/v${WPS_VERSION}.tar.gz
%apphelp downloadwps
This will download the WPS source code from GitHub. Use the Version as a commandline argument.
curl -SL -o WPS-{WPS_VERSION}.tar.gz https://github.com/wrf-model/WPS/archive/refs/tags/v{WPS_VERSION}.tar.gz
%post
# Every line will be a layer in the container
...
...
@@ -73,6 +84,7 @@ CNAME=wrf.dev
echo "export PS1=\"[IMGW-$CNAME]\w\$ \"" >> /.singularity.d/env/99-zz-custom-env.sh
# not sure why that does not happen as default
echo "export PKG_CONFIG_PATH=/usr/lib64/openmpi/lib/pkgconfig/" >> $SINGULARITY_ENVIRONMENT
# add App informaiton to runscript
%environment
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:/usr/lib64:/lib64:/lib
...
...
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