Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
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-course
Commits
b83b83b2
Commit
b83b83b2
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[scripts] Add gnuplot to requirements
parent
8065f08d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
[exercises] Add exercises from last year's course
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/README.md
+5
-7
5 additions, 7 deletions
scripts/README.md
scripts/install.sh
+11
-6
11 additions, 6 deletions
scripts/install.sh
with
16 additions
and
13 deletions
scripts/README.md
+
5
−
7
View file @
b83b83b2
...
...
@@ -13,21 +13,19 @@ You need to have the following REQUIREMENTS installed:
*
git
*
pkg-config
*
paraview (to visualize the results)
*
gnuplot (to plot some curves)
*
wget (to download some config files during the installation)
On debian-based system you can use this:
apt-get install build-essential pkg-config cmake git paraview
apt-get install build-essential pkg-config cmake git paraview
wget gnuplot
Then, you can the execute the script and it will download the dune repositories and dumux
and configure all modules with CMake
./install.sh
This will clone the necessary repositories (in a subfolder 'du
ne
'),
This will clone the necessary repositories (in a subfolder 'du
mux
'),
build all libaries.
The dune core modules are also available as debian packages
(see http://www.dune-project.org/download.html#binary) where
the version 2.4 is required.
Run the script test_dumux.sh in the same folder you ran this script
Run the script test_dumux.sh in the newly created dumux folder
to test your installation of dumux.
./test_dumux.sh
It will compile and run a simple one-phase ground water flow example
...
...
This diff is collapsed.
Click to expand it.
scripts/install.sh
+
11
−
6
View file @
b83b83b2
...
...
@@ -2,7 +2,7 @@
DUNE_VERSION
=
2.6
# check some prerequistes
for
PRGRM
in
git cmake gcc g++ wget paraview pkg-config
;
do
for
PRGRM
in
git cmake gcc g++ wget paraview pkg-config
gnuplot
;
do
if
!
[
-x
"
$(
command
-v
$PRGRM
)
"
]
;
then
echo
"Error:
$PRGRM
is not installed."
>
&2
exit
1
...
...
@@ -29,9 +29,14 @@ echo "(0/2) Downloading supplementary files. Make sure to be connected to the in
echo
"*********************************************************************************************"
# download the install.opts and the test script
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/master/scripts/test_dumux.sh
chmod
+x test_dumux.sh
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/master/cmake.opts
if
[
!
-f
"test_dumux.sh"
]
;
then
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/master/scripts/test_dumux.sh
chmod
+x test_dumux.sh
fi
if
[
!
-f
"cmake.opts"
]
;
then
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/raw/master/cmake.opts
chmod
+x test_dumux.sh
fi
# get the testing script
...
...
@@ -64,11 +69,11 @@ done
# dune-subgrid
if
[
!
-d
"dune-subgrid"
]
;
then
git clone
-b
releases/
$DUNE_VERSION
https://git.imp.fu-berlin.de/agnumpde/dune-subgrid.git
git clone
-b
releases/
$DUNE_VERSION
-1
https://git.imp.fu-berlin.de/agnumpde/dune-subgrid.git
else
echo
"Skip cloning dune-subgrid because the folder already exists."
cd
dune-subgrid
git checkout releases/
$DUNE_VERSION
git checkout releases/
$DUNE_VERSION
-1
cd
..
fi
...
...
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