mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use WellContainer<double> for RS / RV
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user