Merge pull request #692 from GitPaean/fixing_volumeratio_calculation

fixing application of rs and rv to the volumeRatio calculation.
This commit is contained in:
Atgeirr Flø Rasmussen 2016-05-23 10:02:37 +02:00
commit d1da78b5b2

View File

@ -489,10 +489,10 @@ namespace Opm
const int oilpos = pu.phase_pos[Oil];
const int gaspos = pu.phase_pos[Gas];
const ADB tmp_oil = cmix_s[oilpos] - (rv_perfcells * cmix_s[gaspos] / d);
const ADB tmp_oil = (cmix_s[oilpos] - rv_perfcells * cmix_s[gaspos]) / d;
volumeRatio += tmp_oil / b_perfcells[oilpos];
const ADB tmp_gas = cmix_s[gaspos] - (rs_perfcells * cmix_s[oilpos] / d);
const ADB tmp_gas = (cmix_s[gaspos] - rs_perfcells * cmix_s[oilpos]) / d;
volumeRatio += tmp_gas / b_perfcells[gaspos];
}
else {