Skip to content
Snippets Groups Projects

Slides update

Merged Ivan Buntic requested to merge slides_update into master
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
+ 9
0
@@ -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
Loading