mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Change the maximum number of linear iteration
If we need more than 150 linear iterations, it's probably something wrong, and we may be better of by restarting with smaller time-steps. TODO: make it possible for the user to specify this number.
This commit is contained in:
parent
6c4d62d7fd
commit
ab7472b64c
@ -194,7 +194,7 @@ namespace Opm
|
||||
|
||||
// Construct linear solver.
|
||||
const double tolerance = 1e-3;
|
||||
const int maxit = 5000;
|
||||
const int maxit = 150;
|
||||
const int verbosity = 0;
|
||||
const int restart = 40;
|
||||
Dune::RestartedGMResSolver<Vector> linsolve(opA, sp, precond, tolerance, restart, maxit, verbosity);
|
||||
|
Loading…
Reference in New Issue
Block a user