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:
Tor Harald Sandve 2014-11-10 12:17:36 +01:00
parent 6c4d62d7fd
commit ab7472b64c

View File

@ -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);