diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-08 17:04:00 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-08 17:04:00 +0200 |
| commit | 68c192ef581543d9e15bdae39599cc231b6abdaa (patch) | |
| tree | 4344ea27d53b0935450a6dc31db356e413829f59 /examples/stokes_drag_particle_2d_psm_gpu | |
| parent | 0902d8910f19401ad39762246f66ec0b04a4cf83 (diff) | |
| parent | 51783ae88f88b2d70cd4e21961b1b3e9bda0d3e6 (diff) | |
| download | libs-lbm-68c192ef581543d9e15bdae39599cc231b6abdaa.tar.gz | |
Merge branch 'dev'
Diffstat (limited to 'examples/stokes_drag_particle_2d_psm_gpu')
| -rw-r--r-- | examples/stokes_drag_particle_2d_psm_gpu/sim.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stokes_drag_particle_2d_psm_gpu/sim.cpp b/examples/stokes_drag_particle_2d_psm_gpu/sim.cpp index 572fab0..135bde4 100644 --- a/examples/stokes_drag_particle_2d_psm_gpu/sim.cpp +++ b/examples/stokes_drag_particle_2d_psm_gpu/sim.cpp @@ -178,6 +178,7 @@ saw::error_or<void> step( component<T,Desc,cmpt::PSM,encode::Sycl<saw::encode::Native>> collision{0.8}; component<T,Desc,cmpt::BounceBack,encode::Sycl<saw::encode::Native>> bb; component<T,Desc,cmpt::AntiBounceBack<0u>,encode::Sycl<saw::encode::Native>> abb; + component<T,Desc,cmpt::HlbmOneParticleMomentumExchange,encode::Sycl<saw::encode::Native>> one_part_moment; saw::data<sch::Scalar<T>> eps; eps.at({}).set(1.5f); @@ -222,6 +223,7 @@ saw::error_or<void> step( break; case 2u: opa.apply(macros,index,t_i); + one_part_moment.apply(fields,macros,index,t_i); collision.apply(fields,macros,index,t_i); fg.apply(fields,macros,index,t_i); break; @@ -349,7 +351,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){ auto lsd_view = make_view(lbm_sycl_data); auto lsdm_view = make_view(lbm_sycl_macro_data); - saw::data<sch::UInt64> time_steps{8u*4096ul}; + saw::data<sch::UInt64> time_steps{16u*4096ul}; auto& info_f = lsd_view.template get<"info">(); |
