mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix shut wells case for output of gas mass injected rates
This commit is contained in:
parent
afe34e1868
commit
e584e05435
@ -1690,7 +1690,7 @@ assignMassGasRate(data::Wells& wsrpt,
|
||||
using rt = data::Rates::opt;
|
||||
for (auto& wrpt : wsrpt) {
|
||||
auto& well_rates = wrpt.second.rates;
|
||||
const auto w_mass_rate = well_rates.get(rt::gas) * gasDensity;
|
||||
const auto w_mass_rate = well_rates.get(rt::gas, 0.0) * gasDensity;
|
||||
well_rates.set(rt::mass_gas, w_mass_rate);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user