Merge pull request #5773 from akva2/fix_msw_deadlock

fixed: well model could deadlock
This commit is contained in:
Atgeirr Flø Rasmussen 2024-12-02 10:36:07 +01:00 committed by GitHub
commit b6f23f6fe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1132,9 +1132,12 @@ namespace Opm {
break;
}
++iter;
OPM_BEGIN_PARALLEL_TRY_CATCH();
for (auto& well : this->well_container_) {
well->solveEqAndUpdateWellState(simulator_, well_state, deferred_logger);
}
OPM_END_PARALLEL_TRY_CATCH("BlackoilWellModel::doPreStepNetworkRebalance() failed: ",
this->simulator_.vanguard().grid().comm());
this->initPrimaryVariablesEvaluation();
} while (iter < max_iter);