From 2cb550a77b401b10eefb9e17572e0ca3ae50649a Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 14 Feb 2013 16:07:58 +0000 Subject: [PATCH] Bugfix: use the Riemannian metric to test for orthonormality [[Imported from SVN: r9198]] --- test/targetspacetest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/targetspacetest.cc b/test/targetspacetest.cc index 36d8082b..67aa9588 100644 --- a/test/targetspacetest.cc +++ b/test/targetspacetest.cc @@ -106,7 +106,7 @@ void testOrthonormalFrame(const TargetSpace& a) for (size_t i=0; i<spaceDim; i++) for (size_t j=0; j<spaceDim; j++) - assert( std::fabs(B[i]*B[j] - (i==j)) < 1e-10 ); + assert( std::fabs(a.metric(B[i],B[j]) - (i==j)) < 1e-10 ); } template <class TargetSpace> -- GitLab