mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-28 21:14:25 -06:00
No longer throw on solver failure
This commit is contained in:
parent
d5577f634d
commit
1d112f9ec9
@ -363,9 +363,8 @@ namespace detail {
|
||||
}
|
||||
|
||||
if (!converged) {
|
||||
// the runtime_error is caught by the AdaptiveTimeStepping
|
||||
OPM_THROW(std::runtime_error, "Failed to compute converged solution in " << it << " iterations.");
|
||||
return -1;
|
||||
std::cerr << "WARNING: Failed to compute converged solution in " << it << " iterations." << std::endl;
|
||||
return -1; // -1 indicates that the solver has to be restarted
|
||||
}
|
||||
|
||||
linearIterations_ += linearIterations;
|
||||
|
Loading…
Reference in New Issue
Block a user