From a90f73a10bef04b273cd33dc18950508658a08c9 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Wed, 26 Oct 2011 10:26:28 +0000 Subject: [PATCH] don't hardwire simplex elements into the code. There is no reason why we should [[Imported from SVN: r8049]] --- dune/gfe/localgfetestfunctionbasis.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dune/gfe/localgfetestfunctionbasis.hh b/dune/gfe/localgfetestfunctionbasis.hh index 6cd71292..f0d03811 100644 --- a/dune/gfe/localgfetestfunctionbasis.hh +++ b/dune/gfe/localgfetestfunctionbasis.hh @@ -21,7 +21,7 @@ class LocalGfeTestFunctionBasis; template <class LocalFiniteELement, class TargetSpace> class LocalGfeTestFunctionInterpolation; -/** \brief The local gfe test function finite element on simplices +/** \brief The local gfe test function finite element * * \tparam LagrangeLfe - A Lagrangian finite element whose shape functions define the interpolation weights * \tparam TargetSpace - The manifold the tangent spaces this basis for from belong to. @@ -45,10 +45,9 @@ public: LocalGfeTestFunctionFiniteElement(const LagrangeLfe& lfe, const std::vector<TargetSpace> baseCoeff) : baseCoeff_(baseCoeff), basis_(lfe, baseCoeff_), - coefficients_(lfe.clone()->localCoefficients()) - { - gt_.makeSimplex(LagrangeBasisTraits::dimDomain); - } + coefficients_(lfe.clone()->localCoefficients()), + gt_(lfe.type()) + {} /** \brief Get reference to the local basis.*/ const typename Traits::LocalBasisType& localBasis () const -- GitLab