summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-07-31 18:03:05 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-07-31 18:03:05 +0200
commit46dc8058b4d1c0afa3b2042eae0b8f986ba22b76 (patch)
tree7749776cdf127ce23bc1aecf063f47e3226d1d13
parent2e7350d8249621543e68497b9b295e5cbf1b862a (diff)
Adding particles
-rw-r--r--examples/poiseulle_particles_channel_2d.cpp5
1 files changed, 4 insertions, 1 deletions
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<kel::lbm::sch::T> time_step
){
using namespace kel::lbm;
+
+ auto meta = latt.meta();
+
iterate_over([&](const saw::data<sch::FixedArray<sch::UInt64,2u>>& 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);
}