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
4423310a
Commit
4423310a
authored
9 years ago
by
Thomas Fetzer
Browse files
Options
Downloads
Patches
Plain Diff
[installexternal] Add more modules and automatically apply patches
parent
eac18861
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!31
Feature/colebrookwhiteboundarylayer
,
!12
Feature/externalscript
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/installexternal.sh
+36
-5
36 additions, 5 deletions
bin/installexternal.sh
with
36 additions
and
5 deletions
bin/installexternal.sh
+
36
−
5
View file @
4423310a
...
...
@@ -3,6 +3,7 @@
CORRECT_LOCATION_FOR_DUNE_MODULES
=
"n"
ENABLE_MPI
=
"n"
ENABLE_DEBUG
=
"n"
ENABLE_PARALLEL
=
"n"
CLEANUP
=
"n"
DOWNLOAD_ONLY
=
"n"
...
...
@@ -51,6 +52,10 @@ installCornerpoint()
return
fi
# apply patch
echo
"Applying patch for dune-cornerpoint"
cd
$TOPDIR
/dune-cornerpoint
patch
-p1
<
$TOPDIR
/dumux/patches/dune-cornerpoint-2015.04.patch
cd
$TOPDIR
}
...
...
@@ -131,10 +136,10 @@ installMultidomainGrid()
fi
# apply patch for dune versions newer than 2.3
cd
dune-common
DUNE_VERSION
=
`
git status |
head
-n
1 |
awk
'{ print $3 }'
`
if
[
"
$DUNE_VERSION
"
==
"releases/2.4"
]
||
[
"
$DUNE_VERSION
"
==
"master"
]
;
then
echo
"Applying patch"
cd
$TOPDIR
/
dune-common
DUNE_
COMMON_
VERSION
=
`
git status |
head
-n
1 |
awk
'{ print $3 }'
`
if
[
"
$DUNE_
COMMON_
VERSION
"
==
"releases/2.4"
]
||
[
"
$DUNE_
COMMON_
VERSION
"
==
"master"
]
;
then
echo
"Applying patch
for dune-multidomaingrid
"
cd
$TOPDIR
/dune-multidomaingrid
patch
-p1
<
$TOPDIR
/dumux/patches/multidomaingrid-2.3.patch
fi
...
...
@@ -169,6 +174,22 @@ installOPM()
return
fi
# apply patches
echo
"Applying patch for opm-core"
cd
$TOPDIR
/opm-core
patch
-p1
<
$TOPDIR
/dumux/patches/opm-core-2015.04.patch
echo
"Applying patch for opm-parser"
cd
$TOPDIR
/opm-parser
patch
-p1
<
$TOPDIR
/dumux/patches/opm-parser-2015.04.patch
# show additional information
echo
"In addition to applying the patches, it is necessary to set manually some"
echo
"CMake variables in the CMAKE_FLAGS section of the .opts-file:"
echo
" -Ddune-cornerpoint_PREFIX=/path/to/dune-cornerpoint
\\
"
echo
" -Dopm-core_PREFIX=/path/to/opm-core
\\
"
echo
" -Dopm-parser_PREFIX=/path/to/opm-parser
\\
"
echo
" -DHAVE_DUNE_CORNERPOINT=1
\\
"
cd
$TOPDIR
}
...
...
@@ -244,7 +265,15 @@ installUG()
tar
zxvf ug-
$UG_VERSION
.tar.gz
fi
cd
ug-
$UG_VERSION
# Apply patch for the parallel use of UG
cd
$TOPDIR
/dune-grid
DUNE_GRID_VERSION
=
`
git status |
head
-n
1 |
awk
'{ print $3 }'
`
if
[
"
$DUNE_GRID_VERSION
"
==
"releases/2.3.1"
]
&&
[
"
$ENABLE_PARALLEL
"
==
"y"
]
;
then
echo
"Applying patch for the parallel use of UG"
patch
-p1
<
$TOPDIR
/dumux/patches/grid-2.3.1.patch
fi
cd
$EXTDIR
/ug-
$UG_VERSION
autoreconf
-is
OPTIM_FLAGS
=
"-O3 -DNDEBUG -march=native -finline-functions -funroll-loops"
# debug flags
...
...
@@ -265,6 +294,7 @@ installUG()
CFLAGS
=
"
$CFLAGS
"
\
CXXFLAGS
=
"
$CXXFLAGS
"
\
$OPTS
make
make
install
...
...
@@ -304,6 +334,7 @@ for TMP in "$@"; do
DOWNLOAD_ONLY
=
"y"
;;
"--parallel"
)
ENABLE_PARALLEL
=
"y"
ENABLE_MPI
=
"y"
MPICC
=
$(
which mpicc
)
MPICXX
=
$(
which mpicxx
)
...
...
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