From c63ddef4917f7f9e753d72ae5d8e5beb63d05e08 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Sun, 28 Mar 2010 20:46:25 +0000
Subject: [PATCH] bugfix: the correct energy is *half* the integral.

[[Imported from SVN: r5807]]
---
 src/harmonicenergystiffness.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/harmonicenergystiffness.hh b/src/harmonicenergystiffness.hh
index 55d6d9b2..8ea1ca34 100644
--- a/src/harmonicenergystiffness.hh
+++ b/src/harmonicenergystiffness.hh
@@ -89,7 +89,7 @@ energy(const Entity& element,
 
     }
 
-    return energy;
+    return 0.5 * energy;
 }
 
 #endif
-- 
GitLab