Skip to content
Snippets Groups Projects
Commit 8d6ac902 authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

wrf bug fix

parent f0c30feb
Branches
Tags
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment