From 4c9e43a42c15ce93ffded21dfcaa171f63d20d69 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 11 Jun 2026 14:07:27 +0200 Subject: Fixing deduction issues from constexpr values --- lib/core/c++/hlbm.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/core/c++/hlbm.hpp') diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index 6ae7d80..85e5357 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -4,6 +4,8 @@ #include "component.hpp" #include "equilibrium.hpp" +#include "particle/particle.hpp" + namespace kel { namespace lbm { namespace cmpt { @@ -114,14 +116,15 @@ public: */ template - void apply(const saw::data& field, const saw::data& macros, const saw::data& part_groups, saw::data> index, saw::data time_step) const { + void apply(const saw::data& field, const saw::data& macros, const saw::data& part_group, saw::data> index, saw::data time_step) const { /// Figure out how to access the particle list // auto& p = particles.at(i); /// Iterate over the grid bounds // auto& grid = p.template get<"grid">(); - auto& part_spheroid_group = part_groups.template get<0>(); + auto& part_spheroid_group = part_group; + auto& mvel = macros.template get<"velocity">(); { auto& parts = part_spheroid_group.template get<"particles">(); auto parts_size = parts.size(); @@ -133,10 +136,8 @@ public: saw::data> start; saw::data> stop; + auto aabb = particle_aabb::calculate(part_spheroid_group,index,mvel.meta()); /// Ok, I iterate over the space which covers our particle? So lower bounds to upper bounds - for(uint64_t i{0u}; i < Desc::D; ++i){ - - } iterator::apply([&](const auto& index){ // ask for the d_k value here. -- cgit v1.2.3 From ff702d3c9427794c5557360c53b93f9861f97554 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 22 Jun 2026 17:36:51 +0200 Subject: Dangling --- lib/core/c++/hlbm.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/core/c++/hlbm.hpp') diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index 85e5357..0ba9cc2 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -142,6 +142,7 @@ public: iterator::apply([&](const auto& index){ // ask for the d_k value here. // For every value im iterating over I need sth + std::cout<<"Pos: "< Date: Tue, 23 Jun 2026 14:13:48 +0200 Subject: Fixing hlbm and particle aabb --- lib/core/c++/hlbm.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/core/c++/hlbm.hpp') diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index 0ba9cc2..c15bfc4 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -6,6 +6,8 @@ #include "particle/particle.hpp" +#include + namespace kel { namespace lbm { namespace cmpt { -- cgit v1.2.3 From 70fda0ecf925fb5010b2e23cbdbc4e2076715958 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 24 Jun 2026 22:11:24 +0200 Subject: Adding python script for the graph generation --- lib/core/c++/hlbm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/core/c++/hlbm.hpp') diff --git a/lib/core/c++/hlbm.hpp b/lib/core/c++/hlbm.hpp index c15bfc4..726f2d8 100644 --- a/lib/core/c++/hlbm.hpp +++ b/lib/core/c++/hlbm.hpp @@ -129,7 +129,7 @@ public: auto& mvel = macros.template get<"velocity">(); { auto& parts = part_spheroid_group.template get<"particles">(); - auto parts_size = parts.size(); + auto parts_size = parts.meta().at({0u}); auto& pi = parts.at(index); auto& pirb = pi.template get<"rigid_body">(); -- cgit v1.2.3