diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-15 15:39:41 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-15 15:39:41 +0200 |
| commit | 44cb41bbe6128f2c7ca92b06e2267d52e3121721 (patch) | |
| tree | 089220c108f12c65abe880f448085f2705c3606a /modules/core/tests/particles.cpp | |
| parent | 0dcc910d33832e2c5c29a6317467f85accf77aac (diff) | |
| download | libs-lbm-44cb41bbe6128f2c7ca92b06e2267d52e3121721.tar.gz | |
Preping two way
Diffstat (limited to 'modules/core/tests/particles.cpp')
| -rw-r--r-- | modules/core/tests/particles.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<sch::Scalar<T>> radi,dense; radi.at({}) = 2.2f; dense.at({}) = 1.0f; - auto spheroid_pgrp = lbm::create_spheroid_particle_group<T,D>(radi,dense,{8u}); + auto spheroid_pgrp = lbm::create_spheroid_particle_group<T,D,PC>(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<lbm::sch::ParticleGroup<T,D,lbm::coll::Spheroid<T>>>::calculate(spheroid_pgrp,{{0u}},{{64u,32u}}); - + auto eo_res = lbm::particle_aabb<lbm::sch::ParticleGroup<T,D,PC,lbm::coll::Spheroid<T>>>::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){ |
