mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
improved messages text
This commit is contained in:
parent
7302c37b78
commit
1796b3343b
@ -97,10 +97,10 @@ partiallySupported()
|
|||||||
"GCONPROD",
|
"GCONPROD",
|
||||||
{
|
{
|
||||||
{2,{true, allow_values<std::string> {"NONE", "FLD", "ORAT", "WRAT", "GRAT", "LRAT", "RESV"}, "GCONPROD(TARGET): valid option should be NONE/FLD/ORAT/WRAT/GRAT/LRAT or RESV"}}, // CONTROL_MODE
|
{2,{true, allow_values<std::string> {"NONE", "FLD", "ORAT", "WRAT", "GRAT", "LRAT", "RESV"}, "GCONPROD(TARGET): valid option should be NONE/FLD/ORAT/WRAT/GRAT/LRAT or RESV"}}, // CONTROL_MODE
|
||||||
{7,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTION): Only NONE and RATE is supported"}},
|
{7,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTION): Only NONE and RATE are supported"}},
|
||||||
{11,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTWAT): Only NONE and RATE is supported"}}, // WATER_EXCEED_PROCEDURE
|
{11,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTWAT): Only NONE and RATE are supported"}}, // WATER_EXCEED_PROCEDURE
|
||||||
{12,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTGAS): Only NONE and RATE is supported"}}, // GAS_EXCEED_PROCEDURE
|
{12,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTGAS): Only NONE and RATE are supported"}}, // GAS_EXCEED_PROCEDURE
|
||||||
{13,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTLIQ): Only NONE and RATE is supported"}}, // LIQUID_EXCEED_PROCEDURE
|
{13,{true, allow_values<std::string> {"NONE", "RATE"}, "GCONPROD(ACTLIQ): Only NONE and RATE are supported"}}, // LIQUID_EXCEED_PROCEDURE
|
||||||
{21,{true, allow_values<std::string> {"NONE"}, "GCONPROD(COMBPROC): linearly combined procedure is not used and should be defaulted (1*)"}}, // LIN_TARGET_EXCEED_PROCEDURE
|
{21,{true, allow_values<std::string> {"NONE"}, "GCONPROD(COMBPROC): linearly combined procedure is not used and should be defaulted (1*)"}}, // LIN_TARGET_EXCEED_PROCEDURE
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -415,7 +415,6 @@ actionOnBrokenConstraints(const Group& group,
|
|||||||
std::string ss;
|
std::string ss;
|
||||||
switch(exceed_action) {
|
switch(exceed_action) {
|
||||||
case Group::ExceedAction::NONE: {
|
case Group::ExceedAction::NONE: {
|
||||||
// phase specific exceed actions need to be considered
|
|
||||||
if (oldControl != newControl && oldControl != Group::ProductionCMode::NONE) {
|
if (oldControl != newControl && oldControl != Group::ProductionCMode::NONE) {
|
||||||
if ((water_exceed_action == Group::ExceedAction::RATE && newControl == Group::ProductionCMode::WRAT) ||
|
if ((water_exceed_action == Group::ExceedAction::RATE && newControl == Group::ProductionCMode::WRAT) ||
|
||||||
(gas_exceed_action == Group::ExceedAction::RATE && newControl == Group::ProductionCMode::GRAT) ||
|
(gas_exceed_action == Group::ExceedAction::RATE && newControl == Group::ProductionCMode::GRAT) ||
|
||||||
@ -427,7 +426,9 @@ actionOnBrokenConstraints(const Group& group,
|
|||||||
Group::ProductionCMode2String(newControl));
|
Group::ProductionCMode2String(newControl));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ss = fmt::format("Group production exceed action is NONE for group {}. Nothing happens.", group.name());
|
ss = fmt::format("Procedure on exceeding {} limit is NONE for group {}. Nothing is done.",
|
||||||
|
Group::ProductionCMode2String(oldControl),
|
||||||
|
group.name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user