fixing application of rs and rv to the volumeRatio calculation.

the use of parenthesis is wrong according to Cramer's rule
This commit is contained in:
Kai Bao 2016-05-20 14:52:24 +02:00
parent 02da9a60f3
commit 6f2a0c47a2

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 {