BUGFIX. Wrong uses of parenthesis in Cramer's rule

This commit is contained in:
Tor Harald Sandve 2016-05-19 11:28:36 +02:00
parent bd0ad6aa5b
commit 0730ffcb69

View File

@ -365,7 +365,7 @@ namespace Opm {
int oil_pos = fluid_.phaseUsage().phase_pos[Oil];
// 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
// of the gas contribution.