File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2-
2+ echo " HELLO "
33# This script installs FFTW locally. It may need to environment
44# variables to work, like 'export CC=gcc' in ARCHER.
55
99
1010# Create target directory if needed.
1111
12+
1213HERE_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
1314FIDIMAG_DIR=" $( dirname " $HERE_DIR " ) "
14- LIBS_DIR=${FIDIMAG_DIR} /local
15+
16+ if [ -z $LIBS_DIR ]; then LIBS_DIR=${FIDIMAG_DIR} /local; fi
17+
1518mkdir -p $LIBS_DIR
1619cd ${LIBS_DIR}
1720echo " Installing FFTW to " $LIBS_DIR " ."
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ type cmake >/dev/null 2>&1 || { printf "CMake required to build SUNDIALS. You ca
1313
1414HERE_DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd )
1515FIDIMAG_DIR=" $( dirname " $HERE_DIR " ) "
16- LIBS_DIR=${FIDIMAG_DIR} /local
16+
17+ if [ -z $LIBS_DIR ]; then LIBS_DIR=${FIDIMAG_DIR} /local; fi
1718
1819echo " Will install SUNDIALS to " ${LIBS_DIR} " using CC=" ${CC} " ."
1920mkdir -p ${LIBS_DIR}
You can’t perform that action at this time.
0 commit comments