From 81de30464219f680d59572a2f5010ce16fb9861d Mon Sep 17 00:00:00 2001 From: Vegard Kippe Date: Wed, 16 Oct 2024 13:32:11 +0200 Subject: [PATCH] Skip empty positional arguments --- opm/simulators/flow/FlowUtils.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opm/simulators/flow/FlowUtils.cpp b/opm/simulators/flow/FlowUtils.cpp index 829f3c00927..b38ef09ec65 100644 --- a/opm/simulators/flow/FlowUtils.cpp +++ b/opm/simulators/flow/FlowUtils.cpp @@ -262,6 +262,12 @@ void hideUnusedParameters() Parameters::Hide(); } +namespace { + bool isEmptyString(const std::string& str) { + return str.size()==0 || str=="\"\"" || str=="''"; + } +} + int eclPositionalParameter(std::function addKey, std::set& seenParams, std::string& errorMsg, @@ -283,6 +289,9 @@ int eclPositionalParameter(std::function 0) { errorMsg = "Parameter 'EclDeckFileName' specified multiple times"