Reverting unintended change.

This commit is contained in:
Vegard Kippe
2023-10-16 10:38:08 +02:00
parent 77bb7aa9cf
commit 5bb0942a02

View File

@@ -1392,6 +1392,12 @@ bool
BlackoilWellModelGeneric:: BlackoilWellModelGeneric::
shouldBalanceNetwork(const int reportStepIdx, const int iterationIdx) const shouldBalanceNetwork(const int reportStepIdx, const int iterationIdx) const
{ {
// if network is not active, we do not need to balance the network
const auto& network = schedule()[reportStepIdx].network();
if (!network.active()) {
return false;
}
const auto& balance = schedule()[reportStepIdx].network_balance(); const auto& balance = schedule()[reportStepIdx].network_balance();
if (balance.mode() == Network::Balance::CalcMode::TimeStepStart) { if (balance.mode() == Network::Balance::CalcMode::TimeStepStart) {
return iterationIdx == 0; return iterationIdx == 0;