mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-24 12:26:26 -06:00
Report Group Level Inject Guiderate Values in Strict SI Units
The output layer expects its input values to be strictly SI, but we
know that the GuideRate container's values are in output units.
Forgotten in PR #3467 (commit 517db198f8
).
This commit is contained in:
parent
5717a95cb4
commit
1d0ee3c005
@ -1286,12 +1286,14 @@ getGuideRateInjectionGroupValues(const Group& group) const
|
|||||||
const auto& gname = group.name();
|
const auto& gname = group.name();
|
||||||
if (this->guideRate_.has(gname, Phase::GAS)) {
|
if (this->guideRate_.has(gname, Phase::GAS)) {
|
||||||
grval.set(data::GuideRateValue::Item::Gas,
|
grval.set(data::GuideRateValue::Item::Gas,
|
||||||
this->guideRate_.get(gname, Phase::GAS));
|
this->guideRate_.getSI(gname, Phase::GAS));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->guideRate_.has(gname, Phase::WATER)) {
|
if (this->guideRate_.has(gname, Phase::WATER)) {
|
||||||
grval.set(data::GuideRateValue::Item::Water,
|
grval.set(data::GuideRateValue::Item::Water,
|
||||||
this->guideRate_.get(gname, Phase::WATER));
|
this->guideRate_.getSI(gname, Phase::WATER));
|
||||||
}
|
}
|
||||||
|
|
||||||
return grval;
|
return grval;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1406,8 +1408,9 @@ calculateAllGroupGuiderates(const int reportStepIdx) const
|
|||||||
gr[gname].production = this->getGuideRateValues(group);
|
gr[gname].production = this->getGuideRateValues(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->guideRate_.has(gname, Phase::WATER)
|
if (this->guideRate_.has(gname, Phase::WATER) ||
|
||||||
|| this->guideRate_.has(gname, Phase::GAS)) {
|
this->guideRate_.has(gname, Phase::GAS))
|
||||||
|
{
|
||||||
gr[gname].injection = this->getGuideRateInjectionGroupValues(group);
|
gr[gname].injection = this->getGuideRateInjectionGroupValues(group);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1416,6 +1419,7 @@ calculateAllGroupGuiderates(const int reportStepIdx) const
|
|||||||
|
|
||||||
gr[parent].injection += gr[gname].injection;
|
gr[parent].injection += gr[gname].injection;
|
||||||
gr[parent].production += gr[gname].production;
|
gr[parent].production += gr[gname].production;
|
||||||
|
|
||||||
up.push_back(parent);
|
up.push_back(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user