diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-11 01:16:44 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-11-11 01:16:44 +0100 |
| commit | 0c0087ef9482634273ec1a23d3a915754f94926d (patch) | |
| tree | 972a8e48c1fae67af23b982d7a9e1a506fc8705f /modules/core/tests/mask.cpp | |
| parent | 2e63c4a31f946a8bafa92c49c1a0a116c0eb6dae (diff) | |
| download | libs-lbm-0c0087ef9482634273ec1a23d3a915754f94926d.tar.gz | |
Snapshot. Migration to Lbm Unit
Diffstat (limited to 'modules/core/tests/mask.cpp')
| -rw-r--r-- | modules/core/tests/mask.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/core/tests/mask.cpp b/modules/core/tests/mask.cpp index dfb5ef8..f67cc78 100644 --- a/modules/core/tests/mask.cpp +++ b/modules/core/tests/mask.cpp @@ -15,7 +15,8 @@ using T = Float64; constexpr uint64_t D = 2u; auto make_one(double radius){ - kel::lbm::data<sch::Scalar<sch::T>> r,d; + kel::lbm::data<sch::LbmMeter<sch::Scalar<sch::T>>> r; + kel::lbm::data<sch::Scalar<sch::T>> d; r.at({}).set(radius); d.at({}).set(1.0); return kel::lbm::create_spheroid_particle_group<sch::T,D,1u>(r,d,{32u}); @@ -209,7 +210,8 @@ SAW_TEST("Mask / porosity agrees with the analytic sphere"){ kel::lbm::data<sch::Scalar<sch::T>> eps; eps.at({}).set(1.5); - auto rad = p.template get<"collision">().template get<"radius">(); + // The analytic porosity works on raw lengths, as the solvers do. + auto rad = p.template get<"collision">().template get<"radius">().handle(); double worst = 0.0; for(int i = 0; i <= 40; ++i){ |
