Skip to content
Snippets Groups Projects
Commit b4770039 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix g++ build

parent d1718327
No related branches found
No related tags found
1 merge request!7Feature/itemvalue
...@@ -18,37 +18,37 @@ struct IConnectivity ...@@ -18,37 +18,37 @@ struct IConnectivity
template <ItemType item_type> template <ItemType item_type>
size_t numberOf() const = delete; size_t numberOf() const = delete;
IConnectivity() = default;
IConnectivity(const IConnectivity&) = delete;
~IConnectivity() = default;
};
template <> template <>
KOKKOS_INLINE_FUNCTION KOKKOS_INLINE_FUNCTION
size_t numberOf<ItemType::node>() const size_t IConnectivity::numberOf<ItemType::node>() const
{ {
return this->numberOfNodes(); return this->numberOfNodes();
} }
template <> template <>
KOKKOS_INLINE_FUNCTION KOKKOS_INLINE_FUNCTION
size_t numberOf<ItemType::edge>() const size_t IConnectivity::numberOf<ItemType::edge>() const
{ {
return this->numberOfEdges(); return this->numberOfEdges();
} }
template <> template <>
KOKKOS_INLINE_FUNCTION KOKKOS_INLINE_FUNCTION
size_t numberOf<ItemType::face>() const size_t IConnectivity::numberOf<ItemType::face>() const
{ {
return this->numberOfFaces(); return this->numberOfFaces();
} }
template <> template <>
KOKKOS_INLINE_FUNCTION KOKKOS_INLINE_FUNCTION
size_t numberOf<ItemType::cell>() const size_t IConnectivity::numberOf<ItemType::cell>() const
{ {
return this->numberOfCells(); return this->numberOfCells();
} }
IConnectivity() = default;
IConnectivity(const IConnectivity&) = delete;
~IConnectivity() = default;
};
#endif // ICONNECTIVITY_HPP #endif // ICONNECTIVITY_HPP
...@@ -29,13 +29,6 @@ class ValuePerItem ...@@ -29,13 +29,6 @@ class ValuePerItem
return m_is_built; return m_is_built;
} }
KOKKOS_FORCEINLINE_FUNCTION
DataType& operator()(const size_t& j)
{
Assert(m_is_built);
return m_values(j);
}
// Following Kokkos logic, these classes are view and const view does allow // Following Kokkos logic, these classes are view and const view does allow
// changes in data // changes in data
KOKKOS_FORCEINLINE_FUNCTION KOKKOS_FORCEINLINE_FUNCTION
...@@ -52,13 +45,6 @@ class ValuePerItem ...@@ -52,13 +45,6 @@ class ValuePerItem
return m_values.extent(0); return m_values.extent(0);
} }
KOKKOS_FORCEINLINE_FUNCTION
DataType& operator[](const size_t& i)
{
Assert(m_is_built);
return m_values[i];
}
// Following Kokkos logic, these classes are view and const view does allow // Following Kokkos logic, these classes are view and const view does allow
// changes in data // changes in data
KOKKOS_FORCEINLINE_FUNCTION KOKKOS_FORCEINLINE_FUNCTION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment