diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-22 17:36:51 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-06-22 17:36:51 +0200 |
| commit | ff702d3c9427794c5557360c53b93f9861f97554 (patch) | |
| tree | 652c64895bcabfac427276367b9c13303869e101 /examples | |
| parent | 4c9e43a42c15ce93ffded21dfcaa171f63d20d69 (diff) | |
| download | libs-lbm-ff702d3c9427794c5557360c53b93f9861f97554.tar.gz | |
Dangling
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/poiseulle_particles_2d_gpu/step.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/step.hpp b/examples/poiseulle_particles_2d_gpu/step.hpp index 52e8c59..aa0e382 100644 --- a/examples/poiseulle_particles_2d_gpu/step.hpp +++ b/examples/poiseulle_particles_2d_gpu/step.hpp @@ -18,10 +18,11 @@ saw::error_or<void> step( auto& info_f = fields.template get<"info">(); auto& porous_f = macros.template get<"porosity">(); + component<T,Desc,cmpt::HlbmParticle,encode::Sycl<saw::encode::Native>> particle; + // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ component<T,Desc,cmpt::Hlbm,encode::Sycl<saw::encode::Native>> collision{0.8}; - component<T,Desc,cmpt::HlbmParticle,encode::Sycl<saw::encode::Native>> particle; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; component<T,Desc,cmpt::AntiBounceBack<0u>,encode::Sycl<saw::encode::Native>> abb; @@ -76,6 +77,11 @@ saw::error_or<void> step( }); }).wait(); + q.submit([&](acpp::sycl::handler& h){ + h.parallel_for(acpp::sycl::range<1u>{1u}, [=](acpp::sycl::id<1u> idx){ + particle.apply(fields,macros,particles,{{0u}},t_i); + }); + }).wait(); // Step /* |
