... | @@ -32,10 +32,17 @@ To to so, we edit the `config_release.opts` file and insert the Matlab path: |
... | @@ -32,10 +32,17 @@ To to so, we edit the `config_release.opts` file and insert the Matlab path: |
|
<img src="/uploads/00c1fc3fa27b2a14ce219269f6f2ce53/04.png" width="200">
|
|
<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.
|
|
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.
|
|
If you do not want to use the Matlab bindings, you can simply delete the `duneuro-matlab` subdirectory.
|
|
|
|
If your computer has less than 16GB of RAM, you should modify the last line and replace `-j2` by `-j1` which will reduce the number of cores that are used for parallel compilation.
|
|
|
|
|
|
In order to compile duneuro, we use the `dunecontrol` tool provided by the Dune library:
|
|
In order to compile duneuro, we use the `dunecontrol` tool provided by the Dune library.
|
|
|
|
As parameters, we pass the options file that we modified above, and the directory where all generated files should be stored:
|
|
```bash
|
|
```bash
|
|
dune-common/bin/dunecontrol --opts=config_release.opts --builddir=`pwd`/build-release all
|
|
dune-common/bin/dunecontrol --opts=config_release.opts --builddir=`pwd`/build-release all
|
|
```
|
|
```
|
|
|
|
This will create a directory `build-release` in your current directory which will contain the compiled library, once the compilation is finished. As the compilation might take some time, its your chance to grab a coffee now.
|
|
|
|
|
|
|
|
As a quick check if the compilation was successful, you can look for a file `duneuropy.so` in the `build-release/duneuro-py/src` directory:
|
|
|
|
|
|
|
|
<img src="/uploads/c70613678d6965ebef606d6e2be91ae1/05.png" width="200">
|
|
## Test |
|
## Test |
|
|
|
\ No newline at end of file |