diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-07 18:27:16 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-07 18:27:16 +0200 |
| commit | 0d77c9879b4b31b975abc5ce7873b8156e25d24c (patch) | |
| tree | 021c25ff88a2eff5f271e4e13cb89b4036c56175 /examples/throat_clog_2d/step.hpp | |
| parent | 8f9f0cdc2c04ee2eaba61b8ea93a189b75a7bc9c (diff) | |
| download | libs-lbm-0d77c9879b4b31b975abc5ce7873b8156e25d24c.tar.gz | |
Redoing stuff and breaking things
Diffstat (limited to 'examples/throat_clog_2d/step.hpp')
| -rw-r--r-- | examples/throat_clog_2d/step.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<void> step( }).wait(); q.submit([&](acpp::sycl::handler& h){ - component<T,Desc,cmpt::FpLbmOneParticle,encode::Sycl<saw::encode::Native>> fplbm_one_part; + saw::data<sch::Vector<T,Desc::D>> grav; + grav.at({{1u}}) = conv.acceleration_si_to_lbm({-9.81}).handle(); + component<T,Desc,cmpt::FpLbmOneParticle,encode::Sycl<saw::encode::Native>> fplbm_one_part{grav}; h.parallel_for(acpp::sycl::range<1u>{particle_amount}, [=](acpp::sycl::id<1u> idx){ saw::data<sch::FixedArray<sch::UInt64,1u>> index; @@ -125,7 +127,7 @@ saw::error_or<void> 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(); |
