From 79196db2ac3d31543056b3b7abe90ad609c51b4f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 22 Sep 2026 09:27:15 +0200 Subject: Fixing two way coupling --- examples/one_particle_sedimentation_2d/step.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'examples/one_particle_sedimentation_2d/step.hpp') diff --git a/examples/one_particle_sedimentation_2d/step.hpp b/examples/one_particle_sedimentation_2d/step.hpp index c3a3b8a..4bc9dde 100644 --- a/examples/one_particle_sedimentation_2d/step.hpp +++ b/examples/one_particle_sedimentation_2d/step.hpp @@ -8,6 +8,7 @@ namespace lbm { template saw::error_or step( const converter& conv, + const saw::data>& tau, saw::data>,encode::Sycl>& fields, saw::data>,encode::Sycl>& macros, saw::data>,encode::Sycl>& particles, @@ -47,7 +48,7 @@ saw::error_or step( }).wait(); q.submit([&](acpp::sycl::handler& h){ - component> collision{1.0}; + component> collision{tau}; component> bb; h.parallel_for(acpp::sycl::range{dim_x,dim_y}, [=](acpp::sycl::id idx){ @@ -99,14 +100,14 @@ saw::error_or step( index.at({{i}}).set(idx[i]); } - fplbm_one_part.apply(fields,macros,particles,index,t_i,{16u}); + fplbm_one_part.apply(fields,macros,particles,index,t_i,{32u}); }); }).wait(); // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ - component> bgk{1.0}; - component> collision{1.0}; + component> bgk{tau}; + component> collision{tau}; component> bb; component,encode::Sycl> flow_out{1.0}; @@ -182,7 +183,7 @@ saw::error_or step( // auto coll_ev = q.submit([&](acpp::sycl::handler& h){ component> bgk{1.0}; - component> collision{1.0}; + component> collision{tau}; component> bb; component,encode::Sycl> flow_out{1.0}; -- cgit v1.3.1