mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
checking magnitude of the residual for convergence
in StandardWell_impl.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user