DEAL_II_CUDA_HOST_DEV const typename Tensor<rank_, dim, Number>::value_type &
Tensor<rank_, dim, Number>::operator[](const unsigned int i) const
{
+# ifndef DEAL_II_COMPILER_CUDA_AWARE
AssertIndexRange(i, dim);
+# endif
return values[i];
}
Tensor<rank_, dim, Number>::
operator[](const TableIndices<rank_> &indices) const
{
+# ifndef DEAL_II_COMPILER_CUDA_AWARE
Assert(dim != 0,
ExcMessage("Cannot access an object of type Tensor<rank_,0,Number>"));
+# endif
return TensorAccessors::extract<rank_>(*this, indices);
}
DEAL_II_CONSTEXPR inline DEAL_II_ALWAYS_INLINE Number &
Tensor<rank_, dim, Number>::operator[](const TableIndices<rank_> &indices)
{
+# ifndef DEAL_II_COMPILER_CUDA_AWARE
Assert(dim != 0,
ExcMessage("Cannot access an object of type Tensor<rank_,0,Number>"));
+# endif
return TensorAccessors::extract<rank_>(*this, indices);
}
inline TriaObjects::TriaObjects()
- : structdim(-1)
+ : structdim(static_cast<unsigned int>(-1))
, next_free_single(numbers::invalid_unsigned_int)
, next_free_pair(numbers::invalid_unsigned_int)
, reverse_order_next_free_single(false)