28 using cell_stencil_el_buf = std::unique_ptr<sycl::buffer<amr::cell::StencilElement>>;
31 std::unordered_map<u32, dd_cell_stencil_el_buf> storage;
33 void insert_data(
u32 map_id, dd_cell_stencil_el_buf &&stencil_element) {
34 storage.emplace(map_id, std::forward<dd_cell_stencil_el_buf>(stencil_element));
37 sycl::buffer<amr::cell::StencilElement> &get_stencil_element(
u64 patch_id,
u32 map_id) {
T & get_check_ref(const std::unique_ptr< T > &ptr, SourceLocation loc=SourceLocation())
Takes a std::unique_ptr and returns a reference to the object it holds. It throws a std::runtime_erro...