fixing the calculation of volumeRatio.

due to the wrong use of parenthesis.
This commit is contained in:
Kai Bao committed 2016-05-23 15:11:52 +02:00
1 parent 879f127ae8
commit c2bdaa1b92
1 file changed
+2 -2
+2 -2
View File
@@ -318,11 +318,11 @@ namespace Opm
ADB tmp = cmix_s[phase];
if (phase == Oil && (*active_)[Gas]) {
const int gaspos = pu.phase_pos[Gas];
tmp = tmp - rv_perfcells * cmix_s[gaspos] / d;
tmp = (tmp - rv_perfcells * cmix_s[gaspos]) / d;
}
if (phase == Gas && (*active_)[Oil]) {
const int oilpos = pu.phase_pos[Oil];
tmp = tmp - rs_perfcells * cmix_s[oilpos] / d;
tmp = (tmp - rs_perfcells * cmix_s[oilpos]) / d;
}
volumeRatio += tmp / b_perfcells[phase];
}