Skip to content
Snippets Groups Projects
Verified Commit b66e1db6 authored by Liam Keegan's avatar Liam Keegan
Browse files

also catch `MathError` within `do_step`

  - this is thrown if the iterative solver doesn't converge
  - e.g. "SolverAbort: breakdown in BiCGSTAB - omega -0 <= EPSILON 1e-80 after 1835.5 iterations"
parent 9c71949c
No related branches found
No related tags found
1 merge request!25Resolve "Add simple adaptive timestepping"
Pipeline #29391 failed
......@@ -279,7 +279,11 @@ public:
} catch (const Dune::PDELab::NewtonError& e) {
out.coefficients.reset(); // set output to an invalid state
_logger.warn("Step failed"_fmt);
_logger.warn("Step failed (NewtonError)"_fmt);
_logger.trace("{}"_fmt, e.what());
} catch (const Dune::MathError& e) {
out.coefficients.reset(); // set output to an invalid state
_logger.warn("Step failed (MathError)"_fmt);
_logger.trace("{}"_fmt, e.what());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment