From aa3ea1069577d5815eada767ad70b0b8dceed58d Mon Sep 17 00:00:00 2001 From: Patrick Jaap <patrick.jaap@tu-dresden.de> Date: Wed, 24 Aug 2022 16:23:35 +0200 Subject: [PATCH] Better exception handling by rethrowing directly Otherwise the type of the exception gets lost. --- dune/elasticity/assemblers/localadolcstiffness.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/elasticity/assemblers/localadolcstiffness.hh b/dune/elasticity/assemblers/localadolcstiffness.hh index c00fbb7..3dd6512 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; -- GitLab