small explanation about how to create a new module

This commit is contained in:
Gauthier Folzan 2020-04-06 10:23:12 +02:00
parent 8076c3b4f8
commit ea5a689876
1 changed files with 20 additions and 1 deletions

View File

@ -16,9 +16,28 @@ Install dune modules
``` ```
spack install dune-python spack install dune-python
``` ```
## Use ## Use a module
To use dune-python, load the module To use dune-python, load the module
``` ```
source $SPACK_ROOT/share/spack/setup-env.sh source $SPACK_ROOT/share/spack/setup-env.sh
spack load dune-python spack load dune-python
``` ```
## Build a new module
### Initialize developement environment
```
source $SPACK_ROOT/share/spack/setup-env.sh
spack install --only=dependencies dune-newmodule
spack build-env dune-newmodule $SHELL
```
### Initialize dune project
```
duneproject
```
Answer the questions about the new modules, enter the project folder and compile with standard cmake
```
mkdir build
cd build
cmake ..
cmake --build .
``