remove macro EWOMS_GET_PARAM_

This commit is contained in:
Arne Morten Kvarving 2024-04-05 10:27:52 +02:00
parent fe06454112
commit 4d2486196f
2 changed files with 2 additions and 6 deletions

View File

@ -74,10 +74,6 @@
#define EWOMS_GET_PARAM(TypeTag, ParamType, ParamName) \
(::Opm::Parameters::get<TypeTag, Properties::ParamName>())
//!\cond SKIP_THIS
#define EWOMS_GET_PARAM_(TypeTag, ParamType, ParamName) \
(::Opm::Parameters::get<TypeTag, Properties::ParamName>(false))
namespace Opm {
namespace Parameters {

View File

@ -150,8 +150,8 @@ static inline int setupParameters_(int argc,
return status;
}
std::string paramFileName = EWOMS_GET_PARAM_(TypeTag, std::string, ParameterFile);
if (paramFileName != "") {
const std::string paramFileName = Parameters::get<TypeTag, Properties::ParameterFile>(false);
if (!paramFileName.empty()) {
////////////////////////////////////////////////////////////
// add the parameters specified using an .ini file
////////////////////////////////////////////////////////////