mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #887 from akva2/remove_hide_param_macro
remove EWOMS_HIDE_PARAM macro
This commit is contained in:
commit
2fea434f9a
@ -74,16 +74,6 @@
|
|||||||
::Opm::Parameters::registerParam<TypeTag, ParamType>( \
|
::Opm::Parameters::registerParam<TypeTag, ParamType>( \
|
||||||
#ParamName, #ParamName, getPropValue<TypeTag, Properties::ParamName>(), Description)
|
#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
|
* \ingroup Parameter
|
||||||
*
|
*
|
||||||
@ -1158,8 +1148,13 @@ void registerParam(const char *paramName, const char *propertyName, const ParamT
|
|||||||
ParamsMeta::mutableRegistry()[paramName] = paramInfo;
|
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>;
|
using ParamsMeta = GetProp<TypeTag, Properties::ParameterMetaData>;
|
||||||
if (!ParamsMeta::registrationOpen())
|
if (!ParamsMeta::registrationOpen())
|
||||||
|
Loading…
Reference in New Issue
Block a user