From 0d77c9879b4b31b975abc5ce7873b8156e25d24c Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 7 Oct 2026 18:27:16 +0200 Subject: Redoing stuff and breaking things --- examples/throat_clog_2d/step.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/throat_clog_2d/step.hpp') diff --git a/examples/throat_clog_2d/step.hpp b/examples/throat_clog_2d/step.hpp index beb123b..1146890 100644 --- a/examples/throat_clog_2d/step.hpp +++ b/examples/throat_clog_2d/step.hpp @@ -117,7 +117,9 @@ saw::error_or step( }).wait(); q.submit([&](acpp::sycl::handler& h){ - component> fplbm_one_part; + saw::data> grav; + grav.at({{1u}}) = conv.acceleration_si_to_lbm({-9.81}).handle(); + component> fplbm_one_part{grav}; h.parallel_for(acpp::sycl::range<1u>{particle_amount}, [=](acpp::sycl::id<1u> idx){ saw::data> index; @@ -125,7 +127,7 @@ saw::error_or step( index.at({{i}}).set(idx[i]); } - fplbm_one_part.apply(fields,macros,particles,index,t_i,{0u}); + fplbm_one_part.apply(fields,macros,particles,index,t_i,{4u}); }); }).wait(); -- cgit v1.3.1