From 6a11cbfbeb87c7a75dc85bbc9685b3cf1148a635 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 6 Jul 2026 16:11:46 +0200 Subject: Hlbm, remove clearing of porosity --- modules/core/c++/hlbm.hpp | 3 --- modules/core/tests/particles.cpp | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/c++/hlbm.hpp b/modules/core/c++/hlbm.hpp index d9fb3de..d57a2e7 100644 --- a/modules/core/c++/hlbm.hpp +++ b/modules/core/c++/hlbm.hpp @@ -14,7 +14,6 @@ namespace cmpt { struct HlbmInit {}; struct Hlbm {}; struct HlbmParticle {}; - struct HlbmOneParticleMomentumExchange {}; } @@ -96,7 +95,6 @@ public: dfs_old_f.at(index).at({i}) = dfs_old_f.at(index).at({i}) + frequency_ * (eq.at(i) - dfs_old_f.at(index).at({i})); } - porosity.at({}) = 1.0; D.at({}) = 0.0; N = {}; } @@ -174,7 +172,6 @@ public: n_ind_i.at({k}) = (dfi::directions[i])[k]; } - 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}); diff --git a/modules/core/tests/particles.cpp b/modules/core/tests/particles.cpp index 08da227..8c21608 100644 --- a/modules/core/tests/particles.cpp +++ b/modules/core/tests/particles.cpp @@ -277,13 +277,16 @@ SAW_TEST("Spheroid Particle / AABB"){ using namespace kel; using T = sch::Float64; + constexpr uint64_t D = 2u; saw::data> radi,dense; radi.at({}) = 2.0f; dense.at({}) = 1.0f; - auto spheroid_pgrp = lbm::create_spheroid_particle_group(radi,dense,{8u}); + auto spheroid_pgrp = lbm::create_spheroid_particle_group(radi,dense,{8u}); + + // auto res = lbm::particle_aabb>>::calculate(spheroid_pgrp,{{0u}},{}); + - // auto res = lbm::particle_aabb>>::calculate(spheroid_pgrp); // std::cout<