|
|
In the following, we will describe how to download, compile and test duneuro along with the python and matlab bindings on a Linux computer. The instructions assume that you have a Ubuntu system installed and might need minor tweaks if you use a different distribution.
|
|
|
In the following, we will describe how to download, compile and test duneuro along with the python and matlab bindings on a Linux computer. The instructions assume that you have a Ubuntu 18.04 system installed and might need minor tweaks if you use a different distribution.
|
|
|
|
|
|
### Download
|
|
|
### Compile
|
|
|
### Test |
|
|
\ No newline at end of file |
|
|
## Prerequisites
|
|
|
In a first step, we need to make sure that all necessary tools and libraries are installed. To do so, you can run
|
|
|
```bash
|
|
|
sudo apt install build-essential cmake git libeigen3-dev libpython-dev
|
|
|
```
|
|
|
Next, we need to download three helper scripts that are provided on the duneuro homepage:
|
|
|
|
|
|
<img src="/uploads/08b5f5d5da43846c7b78fd26639c42ee/01.png" width="200">
|
|
|
|
|
|
These scripts will help us to clone the necessary Dune modules and to configure the compilation process.
|
|
|
You can download the scripts into a folder in which you want to store duneuro:
|
|
|
|
|
|
<img src="/uploads/ac26d86931f2920c8969b1f965870d39/02.png" width="200">
|
|
|
## Download
|
|
|
In order to download duneuro, we can use the `clone.sh` script which we downloaded above. First, we make it executable and the run it.
|
|
|
```bash
|
|
|
chmod +x clone.sh
|
|
|
./clone.sh
|
|
|
```
|
|
|
The script will clone all necessary Dune modules and store them in separate folders in your current directory.
|
|
|
Depending on your internet-connection, the cloning might take a few seconds.
|
|
|
Afterwards, you should find the different Dune modules in your current directory:
|
|
|
|
|
|
<img src="/uploads/c43d772ed8dd158569bd0fbfbb396b81/03.png" width="200">
|
|
|
## Compile
|
|
|
The duneuro toolbox can be used directly via C++, or more conveniently via its Python and Matlab bindings.
|
|
|
In order to use the Matlab bindings, we need to provide the path to the local Matlab installation to cmake.
|
|
|
To to so, we edit the `config_release.opts` file and insert the Matlab path:
|
|
|
|
|
|
<img src="/uploads/00c1fc3fa27b2a14ce219269f6f2ce53/04.png" width="200">
|
|
|
|
|
|
While doing so, make sure the the trailing backslash `\` remains intact and is the last character in the line.
|
|
|
If you do not want to use the Matlab bindings, simply remove this line.
|
|
|
|
|
|
In order to compile duneuro, we use the `dunecontrol` tool provided by the Dune library:
|
|
|
```bash
|
|
|
dune-common/bin/dunecontrol --opts=config_release.opts --builddir=`pwd`/build-release all
|
|
|
```
|
|
|
## Test |
|
|
\ No newline at end of file |