mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
02da9a60f3
commit
6f2a0c47a2
@ -489,10 +489,10 @@ namespace Opm
|
|||||||
const int oilpos = pu.phase_pos[Oil];
|
const int oilpos = pu.phase_pos[Oil];
|
||||||
const int gaspos = pu.phase_pos[Gas];
|
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];
|
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];
|
volumeRatio += tmp_gas / b_perfcells[gaspos];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user