Skip to content
Snippets Groups Projects
Commit 6b637770 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Using full paths for consistency.

parent b1db9069
No related branches found
No related tags found
No related merge requests found
......@@ -13,20 +13,20 @@ Chunk_END_DATE=%Chunk_END_DATE%
MEMBER=%MEMBER%
# Go to the working directory
cd ${WORKDIR}
# Define rundir
RUNDIR=${WORKDIR}/${STARTDATE}/${MEMBER}
# Activate spack
SPACK_ENV=spack/share/spack/setup-env.sh
SPACK_ENV=${WORKDIR}/spack/share/spack/setup-env.sh
source ${SPACK_ENV}
# Load icon module
spack load icon-nwp@%ICON_VERSION%
# Create member folder and go there
mkdir -p ${STARTDATE}/${MEMBER}
mkdir -p ${RUNDIR}
cd ${STARTDATE}/${MEMBER}
cd ${RUNDIR}
# Download or copy required input files
function download_file() {
......
......@@ -5,17 +5,15 @@ ICON_VERSION=%ICON_VERSION%
STARTDATE=%SDATE%
MEMBER=%MEMBER%
# Go to the working directory
cd ${WORKDIR}
# Define rundir
RUNDIR=${WORKDIR}/${STARTDATE}/${MEMBER}
# Go to the member rundir
cd ${STARTDATE}/${MEMBER}
cd ${RUNDIR}
# Activate spack
SPACK_ENV=spack/share/spack/setup-env.sh
SPACK_ENV=${WORKDIR}/spack/share/spack/setup-env.sh
source ${SPACK_ENV}
# Load icon module
spack load icon-nwp@%ICON_VERSION%
......
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