update the reservoir volume in WellState

This commit is contained in:
Kai Bao
2018-02-14 13:34:35 +01:00
parent abfe9d445b
commit 89bb589755
8 changed files with 120 additions and 8 deletions

View File

@@ -180,6 +180,12 @@ namespace Opm {
void
BlackoilWellModel<TypeTag>::
timeStepSucceeded() {
// TODO: when necessary
rateConverter_->template defineState<ElementContext>(ebosSimulator_);
for (const auto& well : well_container_) {
well->calculateReservoirRates(well_state_);
}
previous_well_state_ = well_state_;
}