Skip to content
Snippets Groups Projects
README.md 1.39 KiB
Newer Older
Timo Koch's avatar
Timo Koch committed
# DuMu<sup>x</sup> course useful scripts

The install script is a shell script that will setup DuMu<sup>x</sup> on your computer
in the version that is required to complete the current course's exercises.

Installation guide dumux
-------------------------

You can set up dumux using the attached script install.sh.
You need to have the following REQUIREMENTS installed:
Bernd Flemisch's avatar
Bernd Flemisch committed
  * gcc >= 7
  * cmake >= 3.1
  * 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:
Ned Coltman's avatar
Ned Coltman committed
```bash
Bernd Flemisch's avatar
Bernd Flemisch committed
  apt-get install build-essential gfortran pkg-config cmake git paraview wget gnuplot libsuitesparse-dev
Ned Coltman's avatar
Ned Coltman committed
```

Then, you can the execute the script and it will download the dune repositories and dumux
and configure all modules with CMake
Ned Coltman's avatar
Ned Coltman committed
```bash
Bernd Flemisch's avatar
Bernd Flemisch committed
  wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/-/raw/master/scripts/install.sh
  chmod a+x install.sh
Ned Coltman's avatar
Ned Coltman committed
```
Bernd Flemisch's avatar
Bernd Flemisch committed
This will clone the necessary repositories (in a subfolder `DUMUX`) and
Theresa Schollenberger's avatar
Theresa Schollenberger committed
Run the script `test_dumux.sh` in the newly created `DUMUX` folder
to test your installation of dumux.
Ned Coltman's avatar
Ned Coltman committed
```bash
Ned Coltman's avatar
Ned Coltman committed
```
It will compile and run a simple one-phase ground water flow example
and visualizes the result using paraview.

Bernd Flemisch's avatar
Bernd Flemisch committed
* you can also click [here](./install.sh) to view and download the install script