diff --git a/dumux/common/parameters.hh b/dumux/common/parameters.hh index 7b31472aae3c3546e9bdeca14a8683c6adfb1e08..8ac9c24e7584ef074db4998117692ac4e711788d 100644 --- a/dumux/common/parameters.hh +++ b/dumux/common/parameters.hh @@ -260,7 +260,10 @@ private: } }; -// a free function to set model- or problem-specific default parameters +/*! + * \ingroup Common + * \brief a free function to set model- or problem-specific default parameters + */ void setParam(Dune::ParameterTree& params, const std::string& group, const std::string& key, @@ -300,7 +303,7 @@ T getParamFromGroup(Args&&... args) * \ingroup Common * \brief Check whether a key exists in the parameter tree */ -bool haveParam(const std::string& param) +bool hasParam(const std::string& param) { const auto& p = Parameters::getTree(); return p.hasKey(param); @@ -311,7 +314,7 @@ bool haveParam(const std::string& param) * \brief Check whether a key exists in the parameter tree with a model group prefix */ template<typename... Args> -bool haveParamInGroup(const std::string& paramGroup, const std::string& param) +bool hasParamInGroup(const std::string& paramGroup, const std::string& param) { const auto& p = Parameters::getTree(); if (paramGroup == "") @@ -320,6 +323,15 @@ bool haveParamInGroup(const std::string& paramGroup, const std::string& param) return p.hasKey(paramGroup + "." + param); } +DUNE_DEPRECATED_MSG("haveParam is deprecated, please use hasParam instead.") +bool haveParam(const std::string& param) +{ return hasParam(param); } + +template<typename... Args> +DUNE_DEPRECATED_MSG("haveParamInGroup is deprecated, please use hasParamInGroup instead.") +bool haveParamInGroup(const std::string& paramGroup, const std::string& param) +{ return hasParamInGroup(paramGroup, param); } + } // namespace Dumux #endif