Clean-up output message for group

This commit is contained in:
Tor Harald Sandve 2019-11-25 10:11:36 +01:00
parent 2c84970314
commit 49b5883ff7

View File

@ -1806,14 +1806,11 @@ namespace Opm {
std::ostringstream ss;
if (oldControl != newControl) {
const std::string from = Group::ProductionCMode2String(oldControl);
ss << "Group " << group.name() << " exceeding "
<< from << " limit \n";
}
switch(exceed_action) {
case Group::ExceedAction::NONE: {
OPM_DEFLOG_THROW(std::runtime_error, "Group " + group.name() + "GroupProductionExceedLimit NONE not implemented", deferred_logger);
if (oldControl != newControl && oldControl != Group::ProductionCMode::NONE) {
ss << "Group production exceed limit is NONE for group " + group.name() + ". Nothing happens";
}
break;
}
case Group::ExceedAction::CON: {