mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 18:02:01 -05:00
fixing the calculation of volumeRatio.
due to the wrong use of parenthesis.
This commit is contained in:
1 parent
879f127ae8
commit
c2bdaa1b92
1 file changed
+2
-2
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user