checking magnitude of the residual for convergence

in StandardWell_impl.
This commit is contained in:
Kai Bao
2017-07-19 16:10:50 +02:00
parent ddb21e1f2c
commit 168205a993
2 changed files with 3 additions and 4 deletions

View File

@@ -1722,7 +1722,8 @@ namespace Opm
std::vector<Scalar> res(numComp);
for (int comp = 0; comp < numWellEq; ++comp) {
res[comp] = resWell_[0][comp];
// magnitude of the residual matters
res[comp] = std::abs(resWell_[0][comp]);
}
Vector well_flux_residual(numComp);