From 4e115d62fed9b679af90329cb961eeaffce94a57 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Mon, 6 Aug 2012 11:14:16 +0200
Subject: [PATCH] Be less explicit about the 2D setting

---
 dune/tectonic/ellipticenergy.hh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dune/tectonic/ellipticenergy.hh b/dune/tectonic/ellipticenergy.hh
index 8359136a..c30626f7 100644
--- a/dune/tectonic/ellipticenergy.hh
+++ b/dune/tectonic/ellipticenergy.hh
@@ -294,7 +294,8 @@ void minimisationInitialiser(Functional const &J, Bisection const &bisection,
     tangentialMinimisation(J, x1, descDir1, bisection);
     double const Jx1 = J(x1);
 
-    SmallVector x2 = { -x1[0], -x1[1] };
+    SmallVector x2(0);
+    x2.axpy(-1, x1);
     SmallVector const descDir2 = { x2[1], -x2[0] };
     tangentialMinimisation(J, x2, descDir2, bisection);
     double const Jx2 = J(x2);
-- 
GitLab