summaryrefslogtreecommitdiff
path: root/examples/poiseulle_particles_2d_ibm_gpu/sim.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-05-29 21:56:48 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-05-29 21:56:48 +0200
commit2dd7c95a111a930e8e23140ab3fec074e7de4c8c (patch)
tree74edc82d6cdad766c31f68d4755a2f49eff4a422 /examples/poiseulle_particles_2d_ibm_gpu/sim.cpp
parent346d979dcdea3e3f37d3ad55680b4f0469d7220c (diff)
downloadlibs-lbm-2dd7c95a111a930e8e23140ab3fec074e7de4c8c.tar.gz
Dangling
Diffstat (limited to 'examples/poiseulle_particles_2d_ibm_gpu/sim.cpp')
-rw-r--r--examples/poiseulle_particles_2d_ibm_gpu/sim.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/poiseulle_particles_2d_ibm_gpu/sim.cpp b/examples/poiseulle_particles_2d_ibm_gpu/sim.cpp
index 7726663..d4bf053 100644
--- a/examples/poiseulle_particles_2d_ibm_gpu/sim.cpp
+++ b/examples/poiseulle_particles_2d_ibm_gpu/sim.cpp
@@ -1,7 +1,7 @@
#include <kel/lbm/sycl/lbm.hpp>
#include <kel/lbm/lbm.hpp>
#include <kel/lbm/particle.hpp>
-#include <kel/lbm/math/n_linear.hpp>
+#include <kel/lbm/math/math.hpp>
#include <forstio/io/io.hpp>
#include <forstio/remote/filesystem/easy.hpp>
@@ -275,6 +275,7 @@ saw::error_or<void> step(
auto& ps = particles;
auto& mask = ps.template get<"mask">();
+ auto& mask_step = ps.template get<"mask_step">().at({});
auto& dense = ps.template get<"density">().at({});
auto& com = ps.template get<"center_of_mass">();
@@ -295,7 +296,7 @@ saw::error_or<void> step(
for(uint64_t i = 0u; i < Desc::D; ++i){
index_shift.at({{i}}) = index.at({i}).template cast_to<T>() - com.at({}).at({{i}});
// Scale to LBM Grid
- index_shift.at({{i}}) = index_shift.at({{i}}) * ;
+ index_shift.at({{i}}) = index_shift.at({{i}}) * mask_step.at({});
}
// Shift our pos into the index