From b21f5779890ff518ad013f678dadf5b6e85d0f86 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Thu, 23 Mar 2017 16:33:32 +0100 Subject: [PATCH] when there is VREP control, updateRateConverter in prepareStep in BlackoilModelEbos. --- opm/autodiff/BlackoilModelEbos.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opm/autodiff/BlackoilModelEbos.hpp b/opm/autodiff/BlackoilModelEbos.hpp index 3c320210c..de82a6844 100644 --- a/opm/autodiff/BlackoilModelEbos.hpp +++ b/opm/autodiff/BlackoilModelEbos.hpp @@ -212,9 +212,13 @@ namespace Opm { /// \param[in, out] reservoir_state reservoir state variables /// \param[in, out] well_state well state variables void prepareStep(const SimulatorTimerInterface& /*timer*/, - const ReservoirState& /*reservoir_state*/, + const ReservoirState& reservoir_state, WellState& well_state) { + if ( wellModel().wellCollection()->havingVREPGroups() ) { + updateRateConverter(reservoir_state); + } + well_model_.prepareTimeStep(ebosSimulator_, well_state); }