From 94953f367542c81d162ff31fb60567143e258c24 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 6 Jul 2026 18:07:55 +0200 Subject: Managed finally to kick myself enough to fix the aabb checks --- modules/core/c++/particle/aabb.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/core/c++') diff --git a/modules/core/c++/particle/aabb.hpp b/modules/core/c++/particle/aabb.hpp index 1773dea..18426d5 100644 --- a/modules/core/c++/particle/aabb.hpp +++ b/modules/core/c++/particle/aabb.hpp @@ -35,13 +35,13 @@ public: auto& a = aabb.template get<"a">(); auto& b = aabb.template get<"b">(); - const saw::data>& rad_d = p_grp.template get<"collision">().template get<"radius">().at({0u}); + const saw::data>& rad_d = p_grp.template get<"collision">().at({0u}).template get<"radius">(); saw::data> lower; saw::data> upper; for(uint64_t i{0u}; i < D; ++i){ - lower.at({{i}}) = pirb_pos.at({{i}}) >= rad_d.at({}) ? (pirb_pos.at({{i}}) - rad_d.at({})) : saw::data{0}; + lower.at({{i}}) = ((pirb_pos.at({{i}}) >= rad_d.at({})) ? (pirb_pos.at({{i}}) - rad_d.at({})) : saw::data{0}); a.at({i}) = lower.at({{i}}).template cast_to(); upper.at({{i}}) = pirb_pos.at({{i}}) + rad_d.at({}); b.at({i}) = (upper.at({{i}})+saw::data{1}).template cast_to(); -- cgit v1.2.3 From 377b6596a9cdfb62a261d2cba4c67be3e9d79244 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 6 Jul 2026 21:50:06 +0200 Subject: Fixing hlbm momentum and fixing the boundary conditions --- modules/core/c++/hlbm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/core/c++') diff --git a/modules/core/c++/hlbm.hpp b/modules/core/c++/hlbm.hpp index d57a2e7..9a89697 100644 --- a/modules/core/c++/hlbm.hpp +++ b/modules/core/c++/hlbm.hpp @@ -174,7 +174,7 @@ public: uint64_t i_opp = dfi::opposite_index[i]; - saw::data dfs_added = dfs.at({i}) + dfs_old_f.at(n_ind_i).at({i_opp}); + saw::data dfs_added = dfs.at({i}) - dfs_old_f.at(n_ind_i).at({i_opp}); saw::data> dfs_added_v; dfs_added_v.at({}) = dfs_added; auto ei_dfs = e_i * dfs_added_v; -- cgit v1.2.3