Improve initialization of the well rates for trivial rates

This also applies for rates with opposite direction.
This commit is contained in:
Tor Harald Sandve
2021-04-26 09:31:29 +02:00
parent 704bc51251
commit 687a2ca977
3 changed files with 169 additions and 32 deletions

View File

@@ -424,6 +424,7 @@ namespace Opm {
const bool event = report_step_starts_ && events.hasEvent(well->name(), effective_events_mask);
if (event) {
try {
well->updateWellStateWithTarget(ebosSimulator_, this->wellState(), local_deferredLogger);
well->calculateExplicitQuantities(ebosSimulator_, this->wellState(), local_deferredLogger);
well->solveWellEquation(ebosSimulator_, this->wellState(), this->groupState(), local_deferredLogger);
} catch (const std::exception& e) {