Commit 97370144 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add safe-guard vs. expansion of uninitialized variables and out of directory invocation.

parent 43f2a504
#! /bin/bash
set -ex
set -eux
scriptdir=$(dirname "$0")
if [[ x$scriptdir != x ]]; then
scriptdir+=/
fi
shopt -s extglob
module load cmake/3.17.1-gcc-9.1.0 gcc/6.4.0 nag/6.2 \
openmpi/2.0.2p2_hpcx-nag62 \
......@@ -52,7 +56,7 @@ if [[ ${libtype-shared} = static ]]; then
else
ppm_configure="'FCFLAGS=$FCFLAGS -wmismatch=ppm_hex_checksum_f,mpi_allgather,mpi_allgatherv,mpi_allreduce,mpi_bcast,ppm_qsort_r,ppm_insertion_sort_once,ppm_heap_elem_increase_sort,ppm_heapify,ppm_heap_leaf_minimize,mpi_sendrecv,ppm_get_address,ppm_dist_mult_array_get_f2c'"
fi
./build-cdi-pio-stack.sh \
${scriptdir}build-cdi-pio-stack.sh \
build=nag62-openmpi2.0.2p2 \
prefix="${HOME}/sw/%pk/%pn-%b" \
multi_installs=: \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment