diff --git a/src/mesh/SubItemValuePerItem.hpp b/src/mesh/SubItemValuePerItem.hpp index a5b96b56565b77a00a5874334c0fae9aa2545e70..b578fc5faae3d94659be87e29a2d13e54e4347ef 100644 --- a/src/mesh/SubItemValuePerItem.hpp +++ b/src/mesh/SubItemValuePerItem.hpp @@ -27,6 +27,9 @@ class SubItemValuePerItem<DataType, public: static const ItemType item_t{item_type}; static const ItemType sub_item_t{sub_item_type}; + + using data_type = DataType; + private: bool m_is_built{false}; @@ -41,9 +44,13 @@ class SubItemValuePerItem<DataType, public: class SubView { + public: + using data_type = DataType; + private: KOKKOS_RESTRICT DataType* const m_sub_values; const size_t m_size; + public: KOKKOS_INLINE_FUNCTION const DataType& operator[](const size_t& i) const