Merge pull request #887 from akva2/remove_hide_param_macro

remove EWOMS_HIDE_PARAM macro
This commit is contained in:
Bård Skaflestad 2024-04-04 09:21:03 +02:00 committed by GitHub
commit 2fea434f9a

View File

@ -74,16 +74,6 @@
::Opm::Parameters::registerParam<TypeTag, ParamType>( \
#ParamName, #ParamName, getPropValue<TypeTag, Properties::ParamName>(), Description)
/*!
* \ingroup Parameter
*
* \brief Indicate that a given parameter should not be mentioned in the help message
*
* This allows to deal with unused parameters
*/
#define EWOMS_HIDE_PARAM(TypeTag, ParamName) \
::Opm::Parameters::hideParam<TypeTag>(#ParamName, getPropValue<TypeTag, Properties::ParamName>())
/*!
* \ingroup Parameter
*
@ -1158,8 +1148,13 @@ void registerParam(const char *paramName, const char *propertyName, const ParamT
ParamsMeta::mutableRegistry()[paramName] = paramInfo;
}
template <class TypeTag, class ParamType>
void hideParam(const char *paramName, const ParamType&)
/*!
* \brief Indicate that a given parameter should not be mentioned in the help message
*
* This allows to deal with unused parameters
*/
template <class TypeTag>
void hideParam(const char* paramName)
{
using ParamsMeta = GetProp<TypeTag, Properties::ParameterMetaData>;
if (!ParamsMeta::registrationOpen())