1#ifndef DUNE_PDELAB_FINITEELEMENTMAP_UTILITY_HH
2#define DUNE_PDELAB_FINITEELEMENTMAP_UTILITY_HH
16 template<
typename FEM>
30 template<
typename FEM>
31 constexpr std::size_t _femBlockSize(std::true_type)
33 constexpr int dim = FEM::dimension;
35 for (
int d = 0 ; d <= dim ; ++d)
40 if (size > 0 and size != gt_size)
45 for (
unsigned int topology_id = 0 ; topology_id < (1 << dim) ; ++topology_id)
47 std::size_t gt_size = FEM::size(
GeometryType(topology_id,d));
50 if (size > 0 and size != gt_size)
61 template<
typename FEM>
62 constexpr std::size_t _femBlockSize(std::false_type)
80 template<
typename FEM>
81 constexpr std::size_t finiteElementMapBlockSize()
83 return Impl::_femBlockSize<FEM>(Std::is_detected<StaticFEMSize,FEM>());
87 template<
typename FEM>
88 using FiniteElementMapBlockSize = std::integral_constant<std::size_t,finiteElementMapBlockSize<FEM>()>;
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:180
constexpr GeometryType none(unsigned int dim)
Returns a GeometryType representing a singular of dimension dim.
Definition: type.hh:785
constexpr GeometryType vertex
GeometryType representing a vertex.
Definition: type.hh:798
Definitions of several macros that conditionally make C++ syntax available.
Dune namespace.
Definition: alignedallocator.hh:14
A unique label for each type of element that can occur in a grid.