From 18346ca25b838908b21c29a3e29f89e7a55a1474 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 16 Jul 2026 14:34:19 +0200 Subject: Adding meta as dims name --- modules/core/c++/hlbm.hpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'modules/core/c++/hlbm.hpp') diff --git a/modules/core/c++/hlbm.hpp b/modules/core/c++/hlbm.hpp index eccc2cd..a749035 100644 --- a/modules/core/c++/hlbm.hpp +++ b/modules/core/c++/hlbm.hpp @@ -103,16 +103,13 @@ public: template class component final { private: +/* template void apply_i(const saw::data& field, const saw::data& macros, const saw::data& part_groups, saw::data> index, saw::data time_step) const { // if constexpr ( i < ) - } + } +*/ public: - /* - template - void apply_i() - */ - template 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 @@ -125,7 +122,7 @@ public: auto& mvel = macros.template get<"velocity">(); { auto& parts = part_spheroid_group.template get<"particles">(); - auto parts_size = parts.dims().at({0u}); + auto parts_size = parts.meta().at({0u}); auto& pi = parts.at(index); auto& pirb = pi.template get<"rigid_body">(); @@ -134,7 +131,12 @@ public: saw::data> start; saw::data> stop; - auto aabb = particle_aabb::calculate(part_spheroid_group,index,mvel.meta()); + auto eo_aabb = particle_aabb::calculate(part_spheroid_group,index,mvel.meta()); + if(eo_aabb.is_error()){ + return; + } + auto& aabb = eo_aabb.get_value(); + /// Ok, I iterate over the space which covers our particle? So lower bounds to upper bounds start = aabb.template get<"a">(); stop = aabb.template get<"b">(); -- cgit v1.2.3 From bd9f266756849a7381d7a4ff575d5f1ccc6e28bb Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 16 Jul 2026 17:23:22 +0200 Subject: Dangling --- modules/core/c++/hlbm.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/core/c++/hlbm.hpp') diff --git a/modules/core/c++/hlbm.hpp b/modules/core/c++/hlbm.hpp index a749035..1c625bb 100644 --- a/modules/core/c++/hlbm.hpp +++ b/modules/core/c++/hlbm.hpp @@ -133,6 +133,8 @@ public: auto eo_aabb = particle_aabb::calculate(part_spheroid_group,index,mvel.meta()); if(eo_aabb.is_error()){ + std::cerr<<"Prepping error"<