From 4353831172a4f2d1a61a31e2821a8179d88147fb Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 6 Jul 2026 13:30:47 +0200 Subject: Fixed compilation issues. Rerunning momentum gather --- modules/core/tests/particles.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules/core/tests') diff --git a/modules/core/tests/particles.cpp b/modules/core/tests/particles.cpp index f474e3b..08da227 100644 --- a/modules/core/tests/particles.cpp +++ b/modules/core/tests/particles.cpp @@ -276,10 +276,15 @@ SAW_TEST("Verlet integration test 2D"){ SAW_TEST("Spheroid Particle / AABB"){ using namespace kel; - auto spheroid_pgrp = lbm::create_spheroid_particle_group>({},{},{8u}); + using T = sch::Float64; - auto res = lbm::particle_aabb>>::calculate(spheroid_pgrp); + saw::data> radi,dense; + radi.at({}) = 2.0f; + dense.at({}) = 1.0f; + auto spheroid_pgrp = lbm::create_spheroid_particle_group(radi,dense,{8u}); - std::cout<>>::calculate(spheroid_pgrp); + + // std::cout< 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(-) (limited to 'modules/core/tests') 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<