NiHu  2.0
field_type_helpers.hpp
1 #ifndef NIHU_FIELD_TYPE_HELPERS_HPP_INCLUDED
2 #define NIHU_FIELD_TYPE_HELPERS_HPP_INCLUDED
3 
4 #include "lib_shape.hpp"
5 
6 namespace NiHu
7 {
8 
9 template <class Field>
10 struct is_constant_line : std::integral_constant<bool,
11  std::is_same<typename Field::elem_t::lset_t, line_1_shape_set>::value &&
12  std::is_same<typename Field::nset_t, line_0_shape_set>::value
13 > {};
14 
15 template <class Field>
16 struct is_linear_line : std::integral_constant<bool,
17  std::is_same<typename Field::elem_t::lset_t, line_1_shape_set>::value &&
18  std::is_same<typename Field::nset_t, line_1_shape_set>::value
19 > {};
20 
21 template <class Field>
22 struct is_constant_tria : std::integral_constant<bool,
23  std::is_same<typename Field::elem_t::lset_t, tria_1_shape_set>::value &&
24  std::is_same<typename Field::nset_t, tria_0_shape_set>::value
25 > {};
26 
27 } // end of namespace NiHu
28 
29 
30 #endif
NiHu::is_linear_line
Definition: field_type_helpers.hpp:16
lib_shape.hpp
definition of shape function sets
NiHu::is_constant_line
Definition: field_type_helpers.hpp:10
NiHu::is_constant_tria
Definition: field_type_helpers.hpp:22