diff --git a/slides/dunemodule.md b/slides/dunemodule.md index b5995cdc82c825358c03e6cb4336f6aee79005ff..0e981f93f09645d2059921265636957624242b56 100644 --- a/slides/dunemodule.md +++ b/slides/dunemodule.md @@ -19,7 +19,15 @@ But where? ## The Dune/Dumux Suite <img src=img/dependenciesMyModule.png width="100%"> -## How are these models linked? +## Creating a new dune module +Start the script `duneproject` to initiate creating a new module: + +```bash +./dune-common/bin/duneproject +``` + +## How are these modules linked? +Compile modules via: ```bash ./dune-common/bin/dunecontrol --opts=dumux/cmake.opts all @@ -27,11 +35,27 @@ But where? ## Adding test cases to an `appl` folder +- Adjust the + - source (.cc) file, + - input parameter file, + - problem file, + - properties file, + - (spatialparams file). +- Adjust the `CMakeLists.txt` file. +- Reconfigure your module. -## Adding/Overwriting source headers in a `dumux` folder +## Pushing an existing folder to an empty git repository +```bash +cd my-module-folder +git init --initial-branch=main +git remote add origin https://git.iws.uni-stuttgart.de/Namespace/my-module.git +git add . +git commit -m "Initial commit" +git push -u origin main +``` -## Exercises: +## [Exercises](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/tree/master/exercises/exercise-dunemodule): - Create a new module with the duneproject script - Run dune control