add group name to output

This commit is contained in:
Tor Harald Sandve 2019-12-16 14:28:55 +01:00
parent 2a0f8a0465
commit 2a732d3c99

View File

@ -1919,7 +1919,7 @@ namespace Opm {
case Group::ExceedAction::RATE: { case Group::ExceedAction::RATE: {
if (oldControl != newControl) { if (oldControl != newControl) {
well_state.setCurrentProductionGroupControl(group.name(), newControl); well_state.setCurrentProductionGroupControl(group.name(), newControl);
ss << "Switching control mode for group to " << Group::ProductionCMode2String(newControl); ss << "Switching control mode for group "<< group.name() << " to " << Group::ProductionCMode2String(newControl);
} }
wellGroupHelpers::setGroupControl(group, schedule(), reportStepIdx, false, well_state, ss); wellGroupHelpers::setGroupControl(group, schedule(), reportStepIdx, false, well_state, ss);
break; break;
@ -1951,7 +1951,7 @@ namespace Opm {
const std::string from = Group::InjectionCMode2String(oldControl); const std::string from = Group::InjectionCMode2String(oldControl);
ss << "Group " << group.name() << " exceeding " ss << "Group " << group.name() << " exceeding "
<< from << " limit \n"; << from << " limit \n";
ss << "Switching control mode for group to " << Group::InjectionCMode2String(newControl); ss << "Switching control mode for group "<< group.name() << " to " << Group::InjectionCMode2String(newControl);
auto cc = Dune::MPIHelper::getCollectiveCommunication(); auto cc = Dune::MPIHelper::getCollectiveCommunication();
if (cc.size() > 1) { if (cc.size() > 1) {
ss << " on rank " << cc.rank(); ss << " on rank " << cc.rank();