Only modify initial rates for producers.

This commit is contained in:
Atgeirr Flø Rasmussen 2020-12-07 10:05:46 +01:00
parent f967d82ad5
commit d20641d97b

View File

@ -396,11 +396,16 @@ namespace Opm {
}
if (alternative_well_rate_init_) {
// Update the well rates to match state, if only single-phase rates.
// Update the well rates of well_state_, if only single-phase rates, to
// have proper multi-phase rates proportional to rates at bhp zero.
// This is done only for producers, as injectors will only have a single
// nonzero phase anyway.
for (auto& well : well_container_) {
if (well->isProducer()) {
well->updateWellStateRates(ebosSimulator_, well_state_, local_deferredLogger);
}
}
}
//compute well guideRates
const auto& comm = ebosSimulator_.vanguard().grid().comm();