From b722e2401cdd79d65ec4f99dc0d0d74a48c84261 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Tue, 25 Oct 2011 13:04:34 +0000
Subject: [PATCH] add new public data member 'embeddedDim'

[[Imported from SVN: r8034]]
---
 dune/gfe/rotation.hh   | 3 +++
 dune/gfe/unitvector.hh | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dune/gfe/rotation.hh b/dune/gfe/rotation.hh
index 28077301..47c2df5a 100644
--- a/dune/gfe/rotation.hh
+++ b/dune/gfe/rotation.hh
@@ -157,6 +157,9 @@ public:
     /** \brief Dimension of the manifold formed by the 3d rotations */
     static const int dim = 3;
     
+    /** \brief Coordinates are embedded into a four-dimension Euclidean space */
+    static const int embeddedDim = 4;
+    
     /** \brief Member of the corresponding Lie algebra.  This really is a skew-symmetric matrix */
     typedef Dune::FieldVector<T,3> TangentVector;
 
diff --git a/dune/gfe/unitvector.hh b/dune/gfe/unitvector.hh
index 0d748d05..c11de438 100644
--- a/dune/gfe/unitvector.hh
+++ b/dune/gfe/unitvector.hh
@@ -64,6 +64,9 @@ public:
     /** \brief Dimension of the manifold formed by unit vectors */
     static const int dim = N-1;
 
+    /** \brief Dimension of the Euclidean space the manifold is embedded in */
+    static const int embeddedDim = N;
+
     typedef Dune::FieldVector<double,N-1> TangentVector;
 
     typedef Dune::FieldVector<double,N> EmbeddedTangentVector;
-- 
GitLab