Skip to content
Snippets Groups Projects
Commit b2852c77 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

fix sign bug in dFdp

[[Imported from SVN: r9194]]
parent 3911aa76
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment