summaryrefslogtreecommitdiff
path: root/examples/poiseulle_particles_2d_gpu/step.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-06-11 14:07:27 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-06-11 14:07:27 +0200
commit4c9e43a42c15ce93ffded21dfcaa171f63d20d69 (patch)
tree13a8e06228070a1989be24ba09130a5ccbafeb45 /examples/poiseulle_particles_2d_gpu/step.hpp
parentad0efe4d0e43a2a4f122677578107c2a0398e53f (diff)
downloadlibs-lbm-4c9e43a42c15ce93ffded21dfcaa171f63d20d69.tar.gz
Fixing deduction issues from constexpr values
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu/step.hpp')
-rw-r--r--examples/poiseulle_particles_2d_gpu/step.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/step.hpp b/examples/poiseulle_particles_2d_gpu/step.hpp
index a4e44b4..52e8c59 100644
--- a/examples/poiseulle_particles_2d_gpu/step.hpp
+++ b/examples/poiseulle_particles_2d_gpu/step.hpp
@@ -7,6 +7,7 @@ namespace lbm {
template<typename T, typename Desc>
saw::error_or<void> step(
+ const converter<T>& conv,
saw::data<sch::Ptr<sch::ChunkStruct<T,Desc>>,encode::Sycl<saw::encode::Native>>& fields,
saw::data<sch::Ptr<sch::MacroStruct<T,Desc>>,encode::Sycl<saw::encode::Native>>& macros,
saw::data<sch::Ptr<sch::ParticleSpheroidGroup<T,Desc>>,encode::Sycl<saw::encode::Native>>& particles,
@@ -19,7 +20,8 @@ saw::error_or<void> step(
// auto coll_ev =
q.submit([&](acpp::sycl::handler& h){
- component<T,Desc,cmpt::Hlbm,encode::Sycl<saw::encode::Native>> collision{0.65};
+ 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;
@@ -32,7 +34,7 @@ saw::error_or<void> step(
component<T,Desc,cmpt::ZouHeHorizontal<true>,encode::Sycl<saw::encode::Native>> flow_in{
[&](){
- uint64_t target_t_i = 64u;
+ uint64_t target_t_i = 16u;
if(t_i.get() < target_t_i){
return 1.0 + (0.0002 / target_t_i) * t_i.get();
}
@@ -41,7 +43,6 @@ saw::error_or<void> step(
};
component<T,Desc,cmpt::ZouHeHorizontal<false>,encode::Sycl<saw::encode::Native>> flow_out{1.0};
-
h.parallel_for(acpp::sycl::range<Desc::D>{dim_x,dim_y}, [=](acpp::sycl::id<Desc::D> idx){
saw::data<sch::FixedArray<sch::UInt64,Desc::D>> index;
for(uint64_t i = 0u; i < Desc::D; ++i){