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