Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
Commits
5fda4891
Commit
5fda4891
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[params] Apply naming conventions for private member function
parent
3839d4c4
No related branches found
No related tags found
1 merge request
!1842
Fix/issue 802 inconsistent param lookup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/common/loggingparametertree.hh
+5
-5
5 additions, 5 deletions
dumux/common/loggingparametertree.hh
with
5 additions
and
5 deletions
dumux/common/loggingparametertree.hh
+
5
−
5
View file @
5fda4891
...
@@ -456,7 +456,7 @@ public:
...
@@ -456,7 +456,7 @@ public:
std
::
vector
<
std
::
string
>
getUnusedKeys
()
const
std
::
vector
<
std
::
string
>
getUnusedKeys
()
const
{
{
std
::
vector
<
std
::
string
>
unusedParams
;
std
::
vector
<
std
::
string
>
unusedParams
;
findUnusedKeys
(
params_
,
unusedParams
);
findUnusedKeys
_
(
params_
,
unusedParams
);
return
unusedParams
;
return
unusedParams
;
}
}
...
@@ -467,9 +467,9 @@ private:
...
@@ -467,9 +467,9 @@ private:
* \param unusedParams Container to store unused keys
* \param unusedParams Container to store unused keys
* \param prefix the prefix attached to the key
* \param prefix the prefix attached to the key
*/
*/
void
findUnusedKeys
(
const
Dune
::
ParameterTree
&
tree
,
void
findUnusedKeys
_
(
const
Dune
::
ParameterTree
&
tree
,
std
::
vector
<
std
::
string
>&
unusedParams
,
std
::
vector
<
std
::
string
>&
unusedParams
,
const
std
::
string
&
prefix
=
""
)
const
const
std
::
string
&
prefix
=
""
)
const
{
{
// loop over all keys of the current tree
// loop over all keys of the current tree
// store keys which were not accessed
// store keys which were not accessed
...
@@ -481,7 +481,7 @@ private:
...
@@ -481,7 +481,7 @@ private:
// recursively loop over all subtrees
// recursively loop over all subtrees
const
auto
&
subTreeKeys
=
tree
.
getSubKeys
();
const
auto
&
subTreeKeys
=
tree
.
getSubKeys
();
for
(
const
auto
&
key
:
subTreeKeys
)
for
(
const
auto
&
key
:
subTreeKeys
)
findUnusedKeys
(
tree
.
sub
(
key
),
unusedParams
,
prefix
+
key
+
"."
);
findUnusedKeys
_
(
tree
.
sub
(
key
),
unusedParams
,
prefix
+
key
+
"."
);
}
}
const
Dune
::
ParameterTree
&
params_
;
const
Dune
::
ParameterTree
&
params_
;
...
...
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