DEAL::
--------------------------------------------------------
An error occurred in file <array_view.h> in function
- dealii::ArrayView<ElementType, MemorySpaceType>::value_type& dealii::ArrayView<ElementType, MemorySpaceType>::operator[](std::size_t) const [with ElementType = unsigned int; MemorySpaceType = dealii::MemorySpace::CUDA; dealii::ArrayView<ElementType, MemorySpaceType>::value_type = unsigned int; std::size_t = long unsigned int]
+ dealii::ArrayView<ElementType, MemorySpace>::value_type& dealii::ArrayView<ElementType, MemorySpace>::operator[](std::size_t) const [with ElementType = unsigned int; MemorySpaceType = dealii::MemorySpace::CUDA; dealii::ArrayView<ElementType, MemorySpace>::value_type = unsigned int; std::size_t = long unsigned int]
The violated condition was:
(std::is_same<MemorySpaceType, MemorySpace::Host>::value)
Additional information:
- Accessing elements is only allowed if the data is stored in CPU memory!
+ Accessing elements is only allowed if the data is stored in CPU
+ memory!
--------------------------------------------------------
DEAL::
--------------------------------------------------------
An error occurred in file <array_view.h> in function
- dealii::ArrayView<ElementType, MemorySpaceType>::ArrayView(dealii::ArrayView<ElementType, MemorySpaceType>::value_type*, std::size_t) [with ElementType = unsigned int; MemorySpaceType = dealii::MemorySpace::CUDA; dealii::ArrayView<ElementType, MemorySpaceType>::value_type = unsigned int; std::size_t = long unsigned int]
+ dealii::ArrayView<ElementType, MemorySpace>::ArrayView(dealii::ArrayView<ElementType, MemorySpace>::value_type*, std::size_t) [with ElementType = unsigned int; MemorySpaceType = dealii::MemorySpace::CUDA; dealii::ArrayView<ElementType, MemorySpace>::value_type = unsigned int; std::size_t = long unsigned int]
The violated condition was:
n_elements == 0 || internal::ArrayViewHelper::is_in_correct_memory_space<MemorySpaceType>( starting_element)
Additional information:
- The memory space indicated by the template parameter and the one derived from the pointer value do not match!
+ The memory space indicated by the template parameter and the one
+ derived from the pointer value do not match!
--------------------------------------------------------
DEAL::Testing host ArrayView with device memory
DEAL::
--------------------------------------------------------
An error occurred in file <array_view.h> in function
- dealii::ArrayView<ElementType, MemorySpaceType>::ArrayView(dealii::ArrayView<ElementType, MemorySpaceType>::value_type*, std::size_t) [with ElementType = unsigned int; MemorySpaceType = dealii::MemorySpace::Host; dealii::ArrayView<ElementType, MemorySpaceType>::value_type = unsigned int; std::size_t = long unsigned int]
+ dealii::ArrayView<ElementType, MemorySpace>::ArrayView(dealii::ArrayView<ElementType, MemorySpace>::value_type*, std::size_t) [with ElementType = unsigned int; MemorySpaceType = dealii::MemorySpace::Host; dealii::ArrayView<ElementType, MemorySpace>::value_type = unsigned int; std::size_t = long unsigned int]
The violated condition was:
n_elements == 0 || internal::ArrayViewHelper::is_in_correct_memory_space<MemorySpaceType>( starting_element)
Additional information:
- The memory space indicated by the template parameter and the one derived from the pointer value do not match!
+ The memory space indicated by the template parameter and the one
+ derived from the pointer value do not match!
--------------------------------------------------------
DEAL::Testing device ArrayView with device memory