Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
287f9fb1
Commit
287f9fb1
authored
9 years ago
by
Thomas Fetzer
Browse files
Options
Downloads
Patches
Plain Diff
[installexternal] add opm and remove patching of dune multidomaingrid
parent
8eaa94c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!31
Feature/colebrookwhiteboundarylayer
,
!5
Feature/externalscript
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/installexternal.sh
+43
-7
43 additions, 7 deletions
bin/installexternal.sh
with
43 additions
and
7 deletions
bin/installexternal.sh
+
43
−
7
View file @
287f9fb1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment