From b2852c77b85642ac02a84e1245f5b2949a89994a Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 14 Feb 2013 16:07:52 +0000 Subject: [PATCH] fix sign bug in dFdp [[Imported from SVN: r9194]] --- dune/gfe/hyperbolichalfspacepoint.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/gfe/hyperbolichalfspacepoint.hh b/dune/gfe/hyperbolichalfspacepoint.hh index 192236b0..3c11048f 100644 --- a/dune/gfe/hyperbolichalfspacepoint.hh +++ b/dune/gfe/hyperbolichalfspacepoint.hh @@ -56,7 +56,7 @@ class HyperbolicHalfspacePoint Dune::FieldVector<T,N> result; for (size_t i=0; i<N-1; i++) - result[i] = ( q.data_[i] - p.data_[i] ) / (q.data_[N-1] * p.data_[N-1]); + result[i] = ( p.data_[i] - q.data_[i] ) / (q.data_[N-1] * p.data_[N-1]); result[N-1] = - diffNormSquared / (2*p.data_[N-1]*p.data_[N-1]*q.data_[N-1]) + (p.data_[N-1] - q.data_[N-1]) / (p.data_[N-1]*q.data_[N-1]); -- GitLab