From 44cb41bbe6128f2c7ca92b06e2267d52e3121721 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 15 Jul 2026 15:39:41 +0200 Subject: Preping two way --- modules/core/tests/particles.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/core/tests') diff --git a/modules/core/tests/particles.cpp b/modules/core/tests/particles.cpp index d11fa4f..e060097 100644 --- a/modules/core/tests/particles.cpp +++ b/modules/core/tests/particles.cpp @@ -278,15 +278,14 @@ SAW_TEST("Spheroid Particle / AABB"){ using T = sch::Float64; constexpr uint64_t D = 2u; + constexpr uint64_t PC = 1u; saw::data> radi,dense; radi.at({}) = 2.2f; 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& rb_array = spheroid_pgrp.template get<"particles">(); - rb_array = {1u}; - auto& rb = rb_array.at({0u}).template get<"rigid_body">(); auto& rb_pos = rb.template get<"position">(); @@ -295,8 +294,9 @@ SAW_TEST("Spheroid Particle / AABB"){ rb_pos.at({{1u}}).set(2.9f); } - auto res = lbm::particle_aabb>>::calculate(spheroid_pgrp,{{0u}},{{64u,32u}}); - + auto eo_res = lbm::particle_aabb>>::calculate(spheroid_pgrp,{{0u}},{{64u,32u}}); + SAW_EXPECT(eo_res.is_value(), "particle_aabb has error value"); + auto& res = eo_res.get_value(); { auto res_check = [&](const auto& tbp){ lbm::iterator<1u>::apply([&](const auto& index){ -- cgit v1.2.3