remove macro EWOMS_GET_PARAM_

This commit is contained in:
Arne Morten Kvarving committed 2024-04-05 14:54:53 +02:00
1 parent fe06454112
commit 4d2486196f
2 files changed
+2 -6

No files matched your search

-4
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 {
+2 -2
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
////////////////////////////////////////////////////////////