Skip to content
Snippets Groups Projects
Commit 6062e219 authored by Ivan Buntic's avatar Ivan Buntic
Browse files

[slides][params] Add file paths for code blocks.

parent 5f344621
No related branches found
No related tags found
1 merge request!296Slides update
...@@ -28,6 +28,7 @@ int main(int argc, char** argv) ...@@ -28,6 +28,7 @@ int main(int argc, char** argv)
return 0; 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 ## Initialize Parameter Tree
...@@ -40,6 +41,7 @@ int main(int argc, char** argv) ...@@ -40,6 +41,7 @@ int main(int argc, char** argv)
return 0; 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 ## Initialize Parameter Tree
...@@ -57,6 +59,7 @@ int main(int argc, char** argv) ...@@ -57,6 +59,7 @@ int main(int argc, char** argv)
return 0; 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 ## Initialize Parameter Tree
...@@ -69,6 +72,7 @@ int main(int argc, char** argv) ...@@ -69,6 +72,7 @@ int main(int argc, char** argv)
return 0; return 0;
} }
``` ```
<span style="font-size: 0.4em; position: relative; top: -38px; color: gray;">File: `dumux/dumux/common/parameters.cc`</span>
## Reading Runtime Parameters ## Reading Runtime Parameters
...@@ -115,10 +119,12 @@ via the single parameter tree ...@@ -115,10 +119,12 @@ via the single parameter tree
if (hasParam("GROUPNAME.PARAMNAME")) if (hasParam("GROUPNAME.PARAMNAME"))
// do something with parameter // 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 * With group prefix lookup
```cpp ```cpp
if (hasParamInGroup("GROUPNAME","PARAMNAME")) 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 ## Parameter tree logs usage
...@@ -132,6 +138,8 @@ int main(int argc, char** argv) ...@@ -132,6 +138,8 @@ int main(int argc, char** argv)
return 0; 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 Reports unused parameters. Great for detecting typos in
configuration file. configuration file.
...@@ -153,6 +161,7 @@ Name = test ...@@ -153,6 +161,7 @@ Name = test
[FreeFlow.Problem] [FreeFlow.Problem]
Name = test_ff 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 ## Command-line arguments
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment