BUGFIX. Currect scale of the mass balance residual

The mass balance residual is now currectly scaled with the time
increment divided by the sum of the pore volumes. Not the opposite.
This commit is contained in:
Tor Harald Sandve 2014-11-13 11:12:52 +01:00
parent e4ad38ec31
commit 19605a7826

View File

@ -1869,9 +1869,9 @@ namespace {
RG_sum = RG.sum();
}
const double mass_balance_residual_water = fabs(BW_avg*RW_sum) * pvSum / dt;
const double mass_balance_residual_oil = fabs(BO_avg*RO_sum) * pvSum / dt;
const double mass_balance_residual_gas = fabs(BG_avg*RG_sum) * pvSum / dt;
const double mass_balance_residual_water = fabs(BW_avg*RW_sum) * dt / pvSum;
const double mass_balance_residual_oil = fabs(BO_avg*RO_sum) * dt / pvSum;
const double mass_balance_residual_gas = fabs(BG_avg*RG_sum) * dt / pvSum;
bool converged_MB = (mass_balance_residual_water < tol_mb)
&& (mass_balance_residual_oil< tol_mb)