27 using namespace shamrock::patch;
34 using Block =
typename Config::AMRBlock;
38 return storage.merged_patchdata_ghost.get().get(id).total_elements;
49 MergedPDat &mpdat = storage.merged_patchdata_ghost.get().get(p.id_patch);
61 auto eint = buf_eint.get_read_access(depends_list);
64 auto e = q.submit(depends_list, [&](sycl::handler &cgh) {
65 Tscal gamma = solver_config.eos_gamma;
67 shambase::parallel_for(
68 cgh, mpdat.total_elements * Block::block_size,
"compute pressure", [=](
u64 id_a) {
69 pressure[id_a] = (gamma - 1) * eint[id_a];
74 buf_eint.complete_event_state(e);
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...