mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
hot-fix ebos output class
it's the pointwise addition +, not the append
This commit is contained in:
parent
a14f5392ee
commit
c9bd40dccd
@ -602,7 +602,7 @@ namespace Opm
|
|||||||
const std::vector<double>& oipg = vapour_active ? fip.fip[Model::FIPData::FIP_VAPORIZED_OIL] : std::vector<double>(size,0.0);
|
const std::vector<double>& oipg = vapour_active ? fip.fip[Model::FIPData::FIP_VAPORIZED_OIL] : std::vector<double>(size,0.0);
|
||||||
std::vector<double> oip = oipl;
|
std::vector<double> oip = oipl;
|
||||||
if (vapour_active) {
|
if (vapour_active) {
|
||||||
oip.insert(oip.end(), oipg.begin(), oipg.end());
|
std::transform(oip.begin(), oip.end(), oipg.begin(), oip.begin(), std::plus<double>());
|
||||||
}
|
}
|
||||||
|
|
||||||
//Oil in place (liquid phase only)
|
//Oil in place (liquid phase only)
|
||||||
@ -638,7 +638,7 @@ namespace Opm
|
|||||||
const std::vector<double>& gipl= liquid_active ? fip.fip[Model::FIPData::FIP_DISSOLVED_GAS] : std::vector<double>(size,0.0);
|
const std::vector<double>& gipl= liquid_active ? fip.fip[Model::FIPData::FIP_DISSOLVED_GAS] : std::vector<double>(size,0.0);
|
||||||
std::vector<double> gip = gipg;
|
std::vector<double> gip = gipg;
|
||||||
if (liquid_active) {
|
if (liquid_active) {
|
||||||
gip.insert(gip.end(), gipl.begin(), gipl.end());
|
std::transform(gip.begin(), gip.end(), gipl.begin(), gip.begin(), std::plus<double>());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gas in place (gas phase only)
|
// Gas in place (gas phase only)
|
||||||
|
Loading…
Reference in New Issue
Block a user