Use WellContainer<double> for RS / RV

This commit is contained in:
Joakim Hove
2021-05-24 10:01:00 +02:00
parent da94a16d3e
commit b34c161805
4 changed files with 18 additions and 16 deletions

View File

@@ -584,8 +584,8 @@ namespace Opm
const double volume = 0.002831684659200; // 0.1 cu ft;
// the solution gas rate and solution oil rate needs to be reset to be zero for well_state.
well_state.wellVaporizedOilRates()[index_of_well_] = 0.;
well_state.wellDissolvedGasRates()[index_of_well_] = 0.;
well_state.wellVaporizedOilRates(index_of_well_) = 0.;
well_state.wellDissolvedGasRates(index_of_well_) = 0.;
const int np = number_of_phases_;
@@ -718,8 +718,8 @@ namespace Opm
// updating the solution gas rate and solution oil rate
if (this->isProducer()) {
well_state.wellDissolvedGasRates()[index_of_well_] += perf_dis_gas_rate;
well_state.wellVaporizedOilRates()[index_of_well_] += perf_vap_oil_rate;
well_state.wellDissolvedGasRates(index_of_well_) += perf_dis_gas_rate;
well_state.wellVaporizedOilRates(index_of_well_) += perf_vap_oil_rate;
}
if constexpr (has_energy) {