diff --git a/dune/elasticity/assemblers/localadolcstiffness.hh b/dune/elasticity/assemblers/localadolcstiffness.hh index c00fbb7458ead51324d7473ee44edc48b3330278..3dd6512808a7fe658a2d594d4a27a8ef9c26d054 100644 --- a/dune/elasticity/assemblers/localadolcstiffness.hh +++ b/dune/elasticity/assemblers/localadolcstiffness.hh @@ -77,7 +77,7 @@ energy(const LocalView& localView, energy = localEnergy_->energy(localView,localAConfiguration); } catch (Dune::Exception &e) { trace_off(); - throw e; + throw; } energy >>= pureEnergy; diff --git a/dune/elasticity/materials/mooneyrivlindensity.hh b/dune/elasticity/materials/mooneyrivlindensity.hh index 37ba2729ca0698bd1f8d7f890160f89669679aeb..a14f96fb7e99482aea5c93e95a83b9ea078a821f 100644 --- a/dune/elasticity/materials/mooneyrivlindensity.hh +++ b/dune/elasticity/materials/mooneyrivlindensity.hh @@ -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;