diff --git a/slides/params.md b/slides/params.md index 6b63f6ebc19de0386f037aad6ac0d8a7f3395725..a021a97b0206fadbae6deaeb9f44ee71b0dd8cae 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