Skip to content
Snippets Groups Projects
Commit 287f9fb1 authored by Thomas Fetzer's avatar Thomas Fetzer
Browse files

[installexternal] add opm and remove patching of dune multidomaingrid

parent 8eaa94c3
No related branches found
No related tags found
2 merge requests!31Feature/colebrookwhiteboundarylayer,!5Feature/externalscript
...@@ -130,13 +130,43 @@ installMultidomainGrid() ...@@ -130,13 +130,43 @@ installMultidomainGrid()
return return
fi fi
# apply patch for dune versions newer than 2.3 # # apply patch for dune versions newer than 2.3
cd dune-common # cd dune-common
VERSION=`git status | head -n 1 | awk '{ print $3 }'` # DUNE_VERSION=`git status | head -n 1 | awk '{ print $3 }'`
if [ "$VERSION" == "releases/2.4" ] || [ "$VERSION" == "master" ]; then # if [ "$DUNE_VERSION" == "releases/2.4" ] || [ "$DUNE_VERSION" == "master" ]; then
echo "Applying patch" # echo "Applying patch"
cd $TOPDIR/dune-multidomaingrid # cd $TOPDIR/dune-multidomaingrid
patch -p1 < $TOPDIR/dumux/patches/multidomaingrid-2.3.patch # patch -p1 < $TOPDIR/dumux/patches/multidomaingrid-2.3.patch
# fi
cd $TOPDIR
}
installOPM()
{
cd $TOPDIR
checkLocationForDuneModules opm
if test $CORRECT_LOCATION_FOR_DUNE_MODULES == "n"; then
return
fi
if [ ! -e opm-core ]; then
git clone -b release/2015.04 https://github.com/OPM/opm-core
fi
if [ ! -e opm-parser ]; then
git clone -b release/2015.04 https://github.com/OPM/opm-parser
fi
if test "$DOWNLOAD_ONLY" == "y"; then
return
fi
if test "$CLEANUP" == "y"; then
rm -rf opm-core
rm -rf opm-parser
return
fi fi
cd $TOPDIR cd $TOPDIR
...@@ -251,6 +281,7 @@ usage() ...@@ -251,6 +281,7 @@ usage()
echo " metis Install the METIS graph partitioner." echo " metis Install the METIS graph partitioner."
echo " multidomain Download dune-multidomain." echo " multidomain Download dune-multidomain."
echo " multidomaingrid Download and patch dune-multidomaingrid." echo " multidomaingrid Download and patch dune-multidomaingrid."
echo " opm Download opm modules required for dune-cornerpoint."
echo " pdelab Download dune-pdelab." echo " pdelab Download dune-pdelab."
echo " typetree Download dune-typetree." echo " typetree Download dune-typetree."
echo " ug Install the UG grid library." echo " ug Install the UG grid library."
...@@ -317,6 +348,7 @@ for TMP in "$@"; do ...@@ -317,6 +348,7 @@ for TMP in "$@"; do
installMETIS installMETIS
installMultidomain installMultidomain
installMultidomainGrid installMultidomainGrid
installOPM
installPDELab installPDELab
installTypeTree installTypeTree
installUG installUG
...@@ -338,6 +370,10 @@ for TMP in "$@"; do ...@@ -338,6 +370,10 @@ for TMP in "$@"; do
SOMETHING_DONE="y" SOMETHING_DONE="y"
installMultidomainGrid installMultidomainGrid
;; ;;
opm)
SOMETHING_DONE="y"
installOPM
;;
pdelab|dune-pdelab) pdelab|dune-pdelab)
SOMETHING_DONE="y" SOMETHING_DONE="y"
installPDELab installPDELab
......
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