Skip to content

Commit

Permalink
Add support for reservoir coupling keywords
Browse files Browse the repository at this point in the history
Adds support for SLAVES, GRUPMAST, and GRUPSLAV keywords
  • Loading branch information
hakonhagland committed Oct 3, 2024
1 parent 836e71c commit 51a0af7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 13 additions & 0 deletions opm/simulators/utils/PartiallySupportedFlowKeywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ partiallySupported()
{5,{true, allow_values<std::string> {"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<std::string> {}, "SLAVES(HOST_NAME): should be defaulted. A specific host name is not implemented yet"}}, // HOST_NAME
},
},
{
"TABDIMS",
{
Expand Down Expand Up @@ -455,6 +462,12 @@ partiallySupported()
{9,{false, allow_values<int> {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",
{
Expand Down
3 changes: 0 additions & 3 deletions opm/simulators/utils/UnsupportedFlowKeywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}},
Expand Down Expand Up @@ -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}},
Expand Down

0 comments on commit 51a0af7

Please sign in to comment.