mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make reordering solver work with iterated implicit.
Also tighten tolerances. They were too slack, giving significant differences from non-reordering implementation towards the end of SPE1CASE2 for example.
This commit is contained in:
@@ -324,7 +324,7 @@ namespace Opm {
|
|||||||
{
|
{
|
||||||
auto rs = reservoir_state;
|
auto rs = reservoir_state;
|
||||||
auto ws = well_state;
|
auto ws = well_state;
|
||||||
tr_model_.nonlinearIteration(iteration, timer, nonlinear_solver, rs, ws);
|
tr_model_.nonlinearIteration(/*iteration*/ 0, timer, nonlinear_solver, rs, ws);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create report and exit.
|
// Create report and exit.
|
||||||
@@ -830,7 +830,7 @@ namespace Opm {
|
|||||||
|
|
||||||
bool getConvergence(const int cell, const Vec2& res)
|
bool getConvergence(const int cell, const Vec2& res)
|
||||||
{
|
{
|
||||||
const double tol = 1e-5;
|
const double tol = 1e-7;
|
||||||
// Compute scaled residuals (scaled like saturations).
|
// Compute scaled residuals (scaled like saturations).
|
||||||
double sres[] = { res[0] / (cstate_[cell].b[Oil] * Base::pvdt_[cell]),
|
double sres[] = { res[0] / (cstate_[cell].b[Oil] * Base::pvdt_[cell]),
|
||||||
res[1] / (cstate_[cell].b[Gas] * Base::pvdt_[cell]) };
|
res[1] / (cstate_[cell].b[Gas] * Base::pvdt_[cell]) };
|
||||||
|
|||||||
Reference in New Issue
Block a user