mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-17 19:33:00 -06:00
throw exception when convergence failed, also in NewtonSolver.
This commit is contained in:
parent
cd7b6ce7f0
commit
fb32376d8f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user