From 6628548fe62334b84228d25686fb3c0e67b11106 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Thu, 14 Feb 2013 16:07:43 +0000
Subject: [PATCH] Fix index bug

[[Imported from SVN: r9187]]
---
 dune/gfe/hyperbolichalfspacepoint.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/gfe/hyperbolichalfspacepoint.hh b/dune/gfe/hyperbolichalfspacepoint.hh
index cfa9dbe5..ebab7b27 100644
--- a/dune/gfe/hyperbolichalfspacepoint.hh
+++ b/dune/gfe/hyperbolichalfspacepoint.hh
@@ -101,7 +101,7 @@ class HyperbolicHalfspacePoint
                     
                     dFdpdq[i][j] = -(p[i] - q[i]) / (p[N-1]*q[N-1]*q[N-1]);
                     
-                } else if (i!=N-1 and j==N-1) {
+                } else if (i==N-1 and j!=N-1) {
                     
                     dFdpdq[i][j] = (p[j] - q[j]) / (p[N-1]*p[N-1]*q[N-1]);
                     
@@ -141,7 +141,7 @@ class HyperbolicHalfspacePoint
                     
                     dFdqdq[i][j] = (p[i] - q[i]) / (p[N-1]*q[N-1]*q[N-1]);
                     
-                } else if (i!=N-1 and j==N-1) {
+                } else if (i==N-1 and j!=N-1) {
                     
                     dFdqdq[i][j] = (p[j] - q[j]) / (p[N-1]*q[N-1]*q[N-1]);
                     
-- 
GitLab