Skip to content
Snippets Groups Projects
Commit cba9eedc authored by Patrick Jaap's avatar Patrick Jaap
Browse files

Let Mooney-Rivlin throw MathError rather than generic exceptions

Some regularizing algorithms based on exceptions filter the exceptions by type to detect math errors such as ill-formed systems or inputs.
parent ee54179d
No related branches found
No related tags found
1 merge request!74Some improvements on exception handling
......@@ -88,7 +88,7 @@ public:
field_type detF = gradient.determinant();
if (detF < 0)
DUNE_THROW( Dune::Exception, "det(F) < 0, so it is not possible to calculate the MooneyRivlinEnergy.");
DUNE_THROW( Dune::MathError, "det(F) < 0, so it is not possible to calculate the MooneyRivlinEnergy.");
// Add the local energy density
field_type strainEnergy = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment