From 6062e21901f27f1acfbcab674073e835e2e5f979 Mon Sep 17 00:00:00 2001 From: IvBu <ivan.buntic@iws.uni-stuttgart.de> Date: Tue, 18 Feb 2025 10:51:55 +0100 Subject: [PATCH] [slides][params] Add file paths for code blocks. --- slides/params.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/slides/params.md b/slides/params.md index 6b63f6eb..a021a97b 100644 --- a/slides/params.md +++ b/slides/params.md @@ -28,6 +28,7 @@ int main(int argc, char** argv) return 0; } ``` +<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux-course/exercises/exercise-basic/2pmain.cc`</span> ## Initialize Parameter Tree @@ -40,6 +41,7 @@ int main(int argc, char** argv) return 0; } ``` +<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux/test/common/parameters/test_loggingparametertree.cc`</span> ## Initialize Parameter Tree @@ -57,6 +59,7 @@ int main(int argc, char** argv) return 0; } ``` +<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux/test/linear/test_parallel_amg_smoothers.cc`</span> ## Initialize Parameter Tree @@ -69,6 +72,7 @@ int main(int argc, char** argv) return 0; } ``` +<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux/dumux/common/parameters.cc`</span> ## Reading Runtime Parameters @@ -115,10 +119,12 @@ via the single parameter tree if (hasParam("GROUPNAME.PARAMNAME")) // do something with parameter ``` + <span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux/examples/biomineralization/main.cc`</span> * With group prefix lookup ```cpp if (hasParamInGroup("GROUPNAME","PARAMNAME")) ``` + <span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux/dumux/freeflow/rans/problem.hh`</span> ## Parameter tree logs usage @@ -132,6 +138,8 @@ int main(int argc, char** argv) return 0; } ``` +<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux-course/exercises/exercise-basic/2pmain.cc`</span> + Reports unused parameters. Great for detecting typos in configuration file. @@ -153,6 +161,7 @@ Name = test [FreeFlow.Problem] Name = test_ff ``` +<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux-course/exercises/exercise-basic/params.input`</span> ## Command-line arguments -- GitLab