From 36ba1b66786e36a21b2cf97111f21ff904112581 Mon Sep 17 00:00:00 2001 From: IvBu <st116086@stud.uni-stuttgart.de> Date: Sun, 2 Apr 2023 15:28:00 +0200 Subject: [PATCH] [dunemodule] Add extra slides. --- slides/dunemodule.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/slides/dunemodule.md b/slides/dunemodule.md index c6784430..d4470aa9 100644 --- a/slides/dunemodule.md +++ b/slides/dunemodule.md @@ -19,12 +19,20 @@ But where? ## The Dune/Dumux Suite <img src=img/dependenciesMyModule.png width="100%"> -## How are these models linked? +## How are these modules linked? +Compile modules via: ```bash ./dune-common/bin/dunecontrol --opts=dumux/cmake.opts all ``` +## Creating a new dune module +Start the script `duneproject` to initiate creating a new module: + +```bash +./dune-common/bin/duneproject +``` + ## Adding test cases to an `appl` folder - Adjust the @@ -36,6 +44,16 @@ But where? - Adjust the `CMakeLists.txt` file. - Reconfigure your module. +## 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](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/tree/master/exercises/exercise-dunemodule): -- GitLab