summaryrefslogtreecommitdiff
path: root/examples/particles_gpu
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-01-10 23:20:05 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-01-10 23:20:05 +0100
commit1563ca95b44ea3e0f7384bc3109f366ed761668f (patch)
treea721eafa2955737a467b6bff7df78569d7f29a4c /examples/particles_gpu
parent393e58b20ece6c9d24af432299dfab6be2402ba8 (diff)
downloadlibs-lbm-1563ca95b44ea3e0f7384bc3109f366ed761668f.tar.gz
Minor renderer for particles
Diffstat (limited to 'examples/particles_gpu')
-rw-r--r--examples/particles_gpu/particles_gpu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/particles_gpu/particles_gpu.cpp b/examples/particles_gpu/particles_gpu.cpp
index 7e0cd5f..9697ac6 100644
--- a/examples/particles_gpu/particles_gpu.cpp
+++ b/examples/particles_gpu/particles_gpu.cpp
@@ -56,6 +56,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){
acc_i.at({{0u}}) = 0.0;
acc_i.at({{1u}}) = -9.81;
}
+
//
for(saw::data<sch::UInt64> i{0u}; i < particles.size(); ++i){
auto& part_i = particles.at(i);
@@ -83,7 +84,7 @@ saw::error_or<void> lbm_main(int argc, char** argv){
auto pos_rel = pos_i - pos_j;
auto vel_pos_rel_dot = saw::math::dot(vel_rel,pos_rel);
- if(vel_pos_rel_dot.get() < 0.0){
+ if(vel_pos_rel_dot.at({}).get() < 0.0){
}