small explanation about how to create a new module
This commit is contained in:
parent
8076c3b4f8
commit
ea5a689876
21
README.md
21
README.md
|
@ -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 .
|
||||||
|
``
|
||||||
|
|
Loading…
Reference in New Issue