From 5f02fe62ca8d964d5423b9b668d5e2d940060ae3 Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@mi.fu-berlin.de>
Date: Thu, 20 Oct 2011 11:51:10 +0000
Subject: [PATCH] add method to return the local base coefficients

[[Imported from SVN: r7975]]
---
 dune/gfe/localgfetestfunctionbasis.hh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dune/gfe/localgfetestfunctionbasis.hh b/dune/gfe/localgfetestfunctionbasis.hh
index 2c3cde1e..2cafe029 100644
--- a/dune/gfe/localgfetestfunctionbasis.hh
+++ b/dune/gfe/localgfetestfunctionbasis.hh
@@ -43,7 +43,8 @@ public:
      *  \param baseCoeff - The coefficients of the base points the tangent spaces live at.
      */
     LocalGfeTestFunctionFiniteElement(const LagrangeLfe& lfe, const std::vector<TargetSpace> baseCoeff) :
-        basis_(lfe, baseCoeff),
+        baseCoeff_(baseCoeff),
+        basis_(lfe, baseCoeff_),
         coefficients_(lfe.clone()->localCoefficients())
     {
         gt_.makeSimplex(LagrangeBasisTraits::dimDomain);
@@ -73,7 +74,11 @@ public:
         return gt_;
     }
 
+    /** \brief Get base coefficients. */
+    const std::vector<TargetSpace>& getBaseCoefficients() {return baseCoeff_;}
+
 private:
+    const std::vector<TargetSpace> baseCoeff_;
     LocalBasis basis_;
     const typename LagrangeLfe::Traits::LocalCoefficientsType& coefficients_;
     LocalInterpolation  interpolation_;
-- 
GitLab