Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux-course
Commits
6062e219
Commit
6062e219
authored
1 month ago
by
Ivan Buntic
Browse files
Options
Downloads
Patches
Plain Diff
[slides][params] Add file paths for code blocks.
parent
5f344621
No related branches found
No related tags found
1 merge request
!296
Slides update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/params.md
+9
-0
9 additions, 0 deletions
slides/params.md
with
9 additions
and
0 deletions
slides/params.md
+
9
−
0
View file @
6062e219
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment