Commit 108d80a8 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

removed size_type from dune:functions:XXXbasis

parent f81fe982
Pipeline #569 failed with stage
in 18 minutes and 53 seconds
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment