From 108d80a8dfe1fe391cde70ec65e00b879c3d015a Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Thu, 20 Oct 2016 15:45:40 +0200 Subject: [PATCH] removed size_type from dune:functions:XXXbasis --- dune/amdis/utility/GetDegree.hpp | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/dune/amdis/utility/GetDegree.hpp b/dune/amdis/utility/GetDegree.hpp index 0f2b419b..da44666b 100644 --- a/dune/amdis/utility/GetDegree.hpp +++ b/dune/amdis/utility/GetDegree.hpp @@ -11,30 +11,30 @@ #include <dune/amdis/common/Mpl.hpp> -namespace AMDiS +namespace AMDiS { namespace Impl { // helper class to extract the polynomial degree of a pqk nodal basis - template <class FeSpace> + template <class FeSpace> struct GetDegree : int_<1> {}; - - template <class GV, int k, class ST> - struct GetDegree<Dune::Functions::PQkNodalBasis<GV, k, ST> > : int_<k> {}; - - template <class GV, int k, class ST> - struct GetDegree<Dune::Functions::LagrangeDGBasis<GV, k, ST> > : int_<k> {}; - - template <class GV, class ST> - struct GetDegree<Dune::Functions::PQ1NodalBasis<GV, ST> > : int_<1> {}; - - template <class GV, class ST> - struct GetDegree<Dune::Functions::TaylorHoodBasis<GV, ST> > : int_<2> {}; - + + template <class GV, int k> + struct GetDegree<Dune::Functions::PQkNodalBasis<GV, k> > : int_<k> {}; + + template <class GV, int k> + struct GetDegree<Dune::Functions::LagrangeDGBasis<GV, k> > : int_<k> {}; + + template <class GV> + struct GetDegree<Dune::Functions::PQ1NodalBasis<GV> > : int_<1> {}; + + template <class GV> + struct GetDegree<Dune::Functions::TaylorHoodBasis<GV> > : int_<2> {}; + } // end namespace Impl - + /// \brief Return the polynomial degree of a given FESpace. Falls back to 1 if unknown. template <class FeSpace> constexpr int getPolynomialDegree = Impl::GetDegree<FeSpace>::value; - + } // end namespace AMDiS -- GitLab