No longer throw on solver failure

This commit is contained in:
Kai Bao
2015-05-07 13:05:23 +02:00
parent d5577f634d
commit 1d112f9ec9

View File

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