when there is VREP control, updateRateConverter in prepareStep

in BlackoilModelEbos.
This commit is contained in:
Kai Bao
2017-03-23 16:33:32 +01:00
parent 68eaf6ac1f
commit b21f577989

View File

@@ -212,9 +212,13 @@ namespace Opm {
/// \param[in, out] reservoir_state reservoir state variables /// \param[in, out] reservoir_state reservoir state variables
/// \param[in, out] well_state well state variables /// \param[in, out] well_state well state variables
void prepareStep(const SimulatorTimerInterface& /*timer*/, void prepareStep(const SimulatorTimerInterface& /*timer*/,
const ReservoirState& /*reservoir_state*/, const ReservoirState& reservoir_state,
WellState& well_state) WellState& well_state)
{ {
if ( wellModel().wellCollection()->havingVREPGroups() ) {
updateRateConverter(reservoir_state);
}
well_model_.prepareTimeStep(ebosSimulator_, well_state); well_model_.prepareTimeStep(ebosSimulator_, well_state);
} }