From 24287015c9d54305a83e14ae056aac8a30e86d5a Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 21 Jan 2011 08:10:09 +0000
Subject: [PATCH] assert that projection onto a tangent space does the right
 thing

[[Imported from SVN: r6807]]
---
 dune/gfe/rotation.hh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dune/gfe/rotation.hh b/dune/gfe/rotation.hh
index 22290429..eccd7728 100644
--- a/dune/gfe/rotation.hh
+++ b/dune/gfe/rotation.hh
@@ -444,6 +444,8 @@ public:
         EmbeddedTangentVector projectedResult = result;
         projectedResult.axpy(-1*(q*result), q);
         
+        assert(std::fabs(projectedResult * q) < 1e-7);
+        
         return projectedResult;
     }
     
-- 
GitLab