scaling the gas rates a little bit for MS well.

It can possibly benefit the StandardWell, while it is something needs a
little bit more investigation before using it.
This commit is contained in:
Kai Bao
2017-09-25 14:03:10 +02:00
parent f7e1623b7a
commit 3255626b2e
3 changed files with 18 additions and 3 deletions

View File

@@ -550,9 +550,11 @@ namespace Opm
// check convergence for flux residuals
for ( int comp_idx = 0; comp_idx < numComponents(); ++comp_idx)
{
report.converged = report.converged && (maximum_residual[comp_idx] < param.tolerance_wells_ * 10.);
// report.converged = report.converged && (maximum_residual[comp_idx] < param.tolerance_wells_ * 10.);
report.converged = report.converged && (maximum_residual[comp_idx] < param.tolerance_wells_);
}
// TODO: it is not good to use a hard-coded value.
report.converged = report.converged && (maximum_residual[SPres] < 100.0);
} else { // abnormal values found and no need to check the convergence
report.converged = false;