From 5c9e86666c3c57e552ec4850a3da14c92063e627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 11 Dec 2023 14:50:18 +0100 Subject: [PATCH] Publish Short Region Set Names Only That way, in-place quantities will go through the short-to-canonical name translation in FieldProps regardless of their origin--e.g., RPTSOL/RPTSCHED or explicit SUMMARY section vectors. --- opm/simulators/utils/ParallelEclipseState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opm/simulators/utils/ParallelEclipseState.cpp b/opm/simulators/utils/ParallelEclipseState.cpp index b4e555ced..b916cf3a6 100644 --- a/opm/simulators/utils/ParallelEclipseState.cpp +++ b/opm/simulators/utils/ParallelEclipseState.cpp @@ -228,10 +228,12 @@ bool ParallelFieldPropsManager::has_double(const std::string& keyword) const std::vector ParallelFieldPropsManager::fip_regions() const { + constexpr auto maxchar = std::string::size_type{6}; + std::vector result; for (const auto& key : m_intProps) { if (Fieldprops::keywords::isFipxxx(key.first)) { - result.push_back(key.first); + result.push_back(key.first.substr(0, maxchar)); } } return result;