mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BUGFIX. Wrong uses of parenthesis in Cramer's rule
This commit is contained in:
parent
bd0ad6aa5b
commit
0730ffcb69
@ -365,7 +365,7 @@ namespace Opm {
|
|||||||
int oil_pos = fluid_.phaseUsage().phase_pos[Oil];
|
int oil_pos = fluid_.phaseUsage().phase_pos[Oil];
|
||||||
|
|
||||||
// remove contribution from the dissolved gas.
|
// remove contribution from the dissolved gas.
|
||||||
const ADB cq_s_solvent = (isProducer * F_solvent + (ones - isProducer) * injectedSolventFraction) * (cq_s[gas_pos] - (rs_perfcells * cq_s[oil_pos] / (ones - rs_perfcells * rv_perfcells)));
|
const ADB cq_s_solvent = (isProducer * F_solvent + (ones - isProducer) * injectedSolventFraction) * (cq_s[gas_pos] - rs_perfcells * cq_s[oil_pos]) / (ones - rs_perfcells * rv_perfcells);
|
||||||
|
|
||||||
// Solvent contribution to the mass balance equation is given as a fraction
|
// Solvent contribution to the mass balance equation is given as a fraction
|
||||||
// of the gas contribution.
|
// of the gas contribution.
|
||||||
|
Loading…
Reference in New Issue
Block a user