Skip to content
Snippets Groups Projects
Commit 108d80a8 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

removed size_type from dune:functions:XXXbasis

parent f81fe982
No related branches found
No related tags found
No related merge requests found
...@@ -11,30 +11,30 @@ ...@@ -11,30 +11,30 @@
#include <dune/amdis/common/Mpl.hpp> #include <dune/amdis/common/Mpl.hpp>
namespace AMDiS namespace AMDiS
{ {
namespace Impl namespace Impl
{ {
// helper class to extract the polynomial degree of a pqk nodal basis // helper class to extract the polynomial degree of a pqk nodal basis
template <class FeSpace> template <class FeSpace>
struct GetDegree : int_<1> {}; struct GetDegree : int_<1> {};
template <class GV, int k, class ST> template <class GV, int k>
struct GetDegree<Dune::Functions::PQkNodalBasis<GV, k, ST> > : int_<k> {}; struct GetDegree<Dune::Functions::PQkNodalBasis<GV, k> > : int_<k> {};
template <class GV, int k, class ST> template <class GV, int k>
struct GetDegree<Dune::Functions::LagrangeDGBasis<GV, k, ST> > : int_<k> {}; struct GetDegree<Dune::Functions::LagrangeDGBasis<GV, k> > : int_<k> {};
template <class GV, class ST> template <class GV>
struct GetDegree<Dune::Functions::PQ1NodalBasis<GV, ST> > : int_<1> {}; struct GetDegree<Dune::Functions::PQ1NodalBasis<GV> > : int_<1> {};
template <class GV, class ST> template <class GV>
struct GetDegree<Dune::Functions::TaylorHoodBasis<GV, ST> > : int_<2> {}; struct GetDegree<Dune::Functions::TaylorHoodBasis<GV> > : int_<2> {};
} // end namespace Impl } // end namespace Impl
/// \brief Return the polynomial degree of a given FESpace. Falls back to 1 if unknown. /// \brief Return the polynomial degree of a given FESpace. Falls back to 1 if unknown.
template <class FeSpace> template <class FeSpace>
constexpr int getPolynomialDegree = Impl::GetDegree<FeSpace>::value; constexpr int getPolynomialDegree = Impl::GetDegree<FeSpace>::value;
} // end namespace AMDiS } // end namespace AMDiS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment