From 46dc8058b4d1c0afa3b2042eae0b8f986ba22b76 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 31 Jul 2025 18:03:05 +0200 Subject: Adding particles --- examples/poiseulle_particles_channel_2d.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/poiseulle_particles_channel_2d.cpp b/examples/poiseulle_particles_channel_2d.cpp index 5052074..9003d1b 100644 --- a/examples/poiseulle_particles_channel_2d.cpp +++ b/examples/poiseulle_particles_channel_2d.cpp @@ -316,6 +316,9 @@ void couple_particles_to_lattice( saw::data time_step ){ using namespace kel::lbm; + + auto meta = latt.meta(); + iterate_over([&](const saw::data>& index){ auto& cell = latt(index); auto& info = cell.template get<"info">(); @@ -557,7 +560,7 @@ int main(int argc, char** argv){ } } - couple_particles_to_lattice(particle_sys, lattice); + couple_particles_to_lattice(particle_sys, lattice, macros, {1u}); lbm_step(lattice, i); } -- cgit v1.2.3