From 535edad63c5091997aa45f90107b6ac4ecf24edb Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Sat, 13 Mar 2010 20:52:40 +0000
Subject: [PATCH] bugfix: now the test passes

[[Imported from SVN: r5739]]
---
 src/unitvector.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/unitvector.hh b/src/unitvector.hh
index 00cd1677..773a6365 100644
--- a/src/unitvector.hh
+++ b/src/unitvector.hh
@@ -121,11 +121,11 @@ public:
         Dune::FieldMatrix<double,dim,dim> B;
         for (int i=0; i<dim; i++)
             for (int j=0; j<dim; j++)
-                B[i][j] = (i==j)*sp + a.data_[j]*b.data_[i];
+                B[i][j] = (i==j)*sp + a.data_[i]*b.data_[j];
 
         // Bring it all together
         result = A;
-        result.axpy(derivativeOfArcCosSquared(sp), B);
+        result.axpy(-1*derivativeOfArcCosSquared(sp), B);
 
         return result;
     }
-- 
GitLab