pass trivial B_avg to init method in wellPI calculation

This commit is contained in:
Tor Harald Sandve 2020-12-08 12:51:25 +01:00
parent 5fb73c9714
commit ba8d2068ea

View File

@ -2678,9 +2678,11 @@ namespace Opm {
this->previous_well_state_ = this->well_state_;
well_container_ = createWellContainer(timeStepIdx);
std::vector< Scalar > B_avg(numComponents(), Scalar() );
// we don't plan to iterate so just passing trivial B_avg
// for now
for (auto& well : well_container_) {
well->init(&phase_usage_, depth_, gravity_, local_num_cells_);
well->init(&phase_usage_, depth_, gravity_, local_num_cells_, B_avg);
}
std::fill(is_cell_perforated_.begin(), is_cell_perforated_.end(), false);