Commit e4177239 authored by Timo Koch's avatar Timo Koch
Browse files

[params] Rename getSubGroups to getParamSubGroups

parent 76563518
......@@ -459,8 +459,9 @@ inline bool hasParamInGroup(const std::string& paramGroup, const std::string& pa
* \brief Get a list of sub groups from the parameter tree sorted by relevance
* \return A vector of fully qualified subGroup names sorted by descending relevance.
*/
inline std::vector<std::string> getSubGroups(const std::string& paramGroup, const std::string& subGroupName)
{ return Parameters::getTree().getSubGroups(subGroupName, paramGroup); }
} // namespace Dumux
inline std::vector<std::string> getParamSubGroups(const std::string& subGroupName, const std::string& paramGroup)
{ return Parameters::getTree().getSubGroups(subGroupName, paramGroup); }
} // end namespace Dumux
#endif
......@@ -166,15 +166,15 @@ private:
void convertParameterTree_(const std::string& paramGroup="")
{
const auto& loggingTree = Parameters::getTree();
auto matchingGroups = loggingTree.getSubGroups("LinearSolver", paramGroup);
auto linearSolverGroups = getParamSubGroups("LinearSolver", paramGroup);
for (const auto& [istlKey, dumuxKey] : istlToDumuxSolverParams)
{
for (const auto fullGroup : matchingGroups)
for (const auto& group : linearSolverGroups)
{
auto istlName = fullGroup + "." + istlKey;
auto dumuxName = fullGroup + "." + dumuxKey;
if(loggingTree.hasKeyOrDefaultKey(dumuxName))
auto istlName = group + "." + istlKey;
auto dumuxName = group + "." + dumuxKey;
if (loggingTree.hasKeyOrDefaultKey(dumuxName))
{
if(loggingTree.hasKeyOrDefaultKey(istlName))
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment