mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -06:00
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:
parent
e4ad38ec31
commit
19605a7826
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user