Update guiderates after with new rates from newly opened wells

This commit is contained in:
Tor Harald Sandve
2022-01-17 13:01:42 +01:00
parent ee3c3db1af
commit d1c2032e73
3 changed files with 19 additions and 5 deletions

View File

@@ -842,8 +842,8 @@ namespace Opm {
terminal_output_, grid().comm());
//update guide rates
if (guideRateUpdateIsNeeded()) {
const int reportStepIdx = ebosSimulator_.episodeIndex();
const int reportStepIdx = ebosSimulator_.episodeIndex();
if (guideRateUpdateIsNeeded(reportStepIdx)) {
const double simulationTime = ebosSimulator_.time();
const auto& comm = ebosSimulator_.vanguard().grid().comm();
const auto& summaryState = ebosSimulator_.vanguard().summaryState();