From 7a803688434af0b6a2b5ac9442c775e23b1c0711 Mon Sep 17 00:00:00 2001 From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de> Date: Mon, 23 May 2016 16:18:28 +0200 Subject: [PATCH] [installexternal] Add gstat for download and installation --- bin/installexternal.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/bin/installexternal.sh b/bin/installexternal.sh index 4037c27d1b..8a10083ad2 100755 --- a/bin/installexternal.sh +++ b/bin/installexternal.sh @@ -99,6 +99,32 @@ installFoamGrid() fi } +installGStat() +{ + cd $EXTDIR + rm -rf gstat* standalone + + if [ ! -e gstat.tar.gz ]; then + wget http://gstat.org/gstat.tar.gz + fi + + if test "$DOWNLOAD_ONLY" == "y"; then + return + fi + + mkdir gstat + tar zxvf gstat.tar.gz --strip-components=1 -C gstat + cd gstat + + sed -i 's# doc/tex/makefile##g' configure + ./configure + make + + if [ -e $PWD/src/gstat ]; then + echo "Successfully installed gstat." + fi +} + installMETIS() { cd $EXTDIR @@ -353,6 +379,7 @@ usage() echo " alugrid Download dune-alugrid." echo " cornerpoint Download and patch dune-cornerpoint." echo " foamgrid Download dune-foamgrid." + echo " gstat Download and install gstat." echo " metis Install the METIS graph partitioner." echo " multidomain Download dune-multidomain." echo " multidomaingrid Download and patch dune-multidomaingrid." @@ -423,6 +450,7 @@ for TMP in "$@"; do installAluGrid installCornerpoint installFoamGrid + installGStat installMETIS installMultidomain installMultidomainGrid @@ -443,6 +471,11 @@ for TMP in "$@"; do SOMETHING_DONE="y" installFoamGrid ;; + gstat) + SOMETHING_DONE="y" + createExternalDirectory + installGStat + ;; metis) SOMETHING_DONE="y" createExternalDirectory -- GitLab