throw exception when convergence failed, also in NewtonSolver.

This commit is contained in:
Robert Kloefkorn 2014-10-17 12:40:25 +02:00
parent cd7b6ce7f0
commit fb32376d8f

View File

@ -338,8 +338,8 @@ namespace {
}
if (!converged) {
std::cerr << "ERROR: Failed to compute converged solution in " << it << " iterations." << std::endl;
// OPM_THROW(std::runtime_error, "Failed to compute converged solution in " << it << " iterations.");
// the runtime_error is caught by the AdaptiveTimeStepping
OPM_THROW(std::runtime_error, "Failed to compute converged solution in " << it << " iterations.");
return -1;
}