From c1caca6d4f6e08cacc0e946ac5b3abc3d9637297 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Tue, 3 Sep 2013 16:29:13 +0000
Subject: [PATCH] make the LocalFiniteElement matches the element

[[Imported from SVN: r9387]]
---
 dune/gfe/cosseratenergystiffness.hh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dune/gfe/cosseratenergystiffness.hh b/dune/gfe/cosseratenergystiffness.hh
index 3157e8fb..fa4b6660 100644
--- a/dune/gfe/cosseratenergystiffness.hh
+++ b/dune/gfe/cosseratenergystiffness.hh
@@ -450,6 +450,8 @@ energy(const Entity& element,
        const LocalFiniteElement& localFiniteElement,
        const std::vector<RigidBodyMotion<double,dim> >& localSolution) const
 {
+    assert(element.type() == localFiniteElement.type());
+
     RT energy = 0;
 
     LocalGeodesicFEFunction<gridDim, double, LocalFiniteElement, TargetSpace> localGeodesicFEFunction(localFiniteElement,
-- 
GitLab