diff --git a/dumux/common/parameters.hh b/dumux/common/parameters.hh index 4ae00d23f835b69ba58b91325448014df3ba2b2c..1e6733594ee4b69b833bb68785a360a5f13d3111 100644 --- a/dumux/common/parameters.hh +++ b/dumux/common/parameters.hh @@ -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 diff --git a/dumux/linear/istlsolverfactorybackend.hh b/dumux/linear/istlsolverfactorybackend.hh index 3c5d9706d3f3c64d3be1b968e095de8cbd7c611c..c01afb3a6ba9e1ef34e9373fa3cee9f1746d4253 100644 --- a/dumux/linear/istlsolverfactorybackend.hh +++ b/dumux/linear/istlsolverfactorybackend.hh @@ -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)) {