From 51a0af789d0e25fd2fd91cda22da0137b756c3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Thu, 20 Jun 2024 22:52:33 +0200 Subject: [PATCH] Add support for reservoir coupling keywords Adds support for SLAVES, GRUPMAST, and GRUPSLAV keywords --- .../utils/PartiallySupportedFlowKeywords.cpp | 13 +++++++++++++ opm/simulators/utils/UnsupportedFlowKeywords.cpp | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/opm/simulators/utils/PartiallySupportedFlowKeywords.cpp b/opm/simulators/utils/PartiallySupportedFlowKeywords.cpp index d79d2ed545b..8770cff7047 100644 --- a/opm/simulators/utils/PartiallySupportedFlowKeywords.cpp +++ b/opm/simulators/utils/PartiallySupportedFlowKeywords.cpp @@ -229,6 +229,13 @@ partiallySupported() {5,{true, allow_values {"F"}, "SPECGRID(TYPE): only option F (Cartesian grids supported) supported"}}, // COORD_TYPE }, }, + { + "SLAVES", + { + {1,{true, [](const std::string& val){ return val.size()<=8;}, "SLAVES(SLAVE_RESERVOIR): Only names of slave reservoirs of up to 8 characters are supported."}}, + {3,{true, allow_values {}, "SLAVES(HOST_NAME): should be defaulted. A specific host name is not implemented yet"}}, // HOST_NAME + }, + }, { "TABDIMS", { @@ -455,6 +462,12 @@ partiallySupported() {9,{false, allow_values {0}, "REGDIMS(NWKIREG): should be equal to 0 - value ignored"}}, // MAX_OPERATE_IWORK }, }, + { + "SLAVES", + { + {5,{true, [](int x) { return x >= 1; }, "SLAVES(NUM_PE): only values greater than or equal to 1 are supported"}}, // NUM_PE + }, + }, { "SPECGRID", { diff --git a/opm/simulators/utils/UnsupportedFlowKeywords.cpp b/opm/simulators/utils/UnsupportedFlowKeywords.cpp index 88316bd5f72..717a922feec 100644 --- a/opm/simulators/utils/UnsupportedFlowKeywords.cpp +++ b/opm/simulators/utils/UnsupportedFlowKeywords.cpp @@ -243,9 +243,7 @@ const KeywordValidation::UnsupportedKeywords& unsupportedKeywords() {"GRAVDRB", {true, std::nullopt}}, {"GRAVDRM", {true, std::nullopt}}, {"GRDREACH", {true, std::nullopt}}, - {"GRUPMAST", {true, std::nullopt}}, {"GRUPRIG", {true, std::nullopt}}, - {"GRUPSLAV", {true, std::nullopt}}, {"GRUPTARG", {true, std::nullopt}}, {"GSATINJE", {true, std::nullopt}}, {"GSEPCOND", {true, std::nullopt}}, @@ -570,7 +568,6 @@ const KeywordValidation::UnsupportedKeywords& unsupportedKeywords() {"SKRORW", {true, std::nullopt}}, {"SKRW", {true, std::nullopt}}, {"SKRWR", {true, std::nullopt}}, - {"SLAVES", {true, std::nullopt}}, {"SMULTX", {true, std::nullopt}}, {"SMULTY", {true, std::nullopt}}, {"SMULTZ", {true, std::nullopt}},