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/component_instantiation.cpp | |
| parent | 2e63c4a31f946a8bafa92c49c1a0a116c0eb6dae (diff) | |
| download | libs-lbm-0c0087ef9482634273ec1a23d3a915754f94926d.tar.gz | |
Snapshot. Migration to Lbm Unit
Diffstat (limited to 'modules/core/tests/component_instantiation.cpp')
| -rw-r--r-- | modules/core/tests/component_instantiation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/core/tests/component_instantiation.cpp b/modules/core/tests/component_instantiation.cpp index 94d0536..e4a890b 100644 --- a/modules/core/tests/component_instantiation.cpp +++ b/modules/core/tests/component_instantiation.cpp @@ -33,7 +33,8 @@ using GroupSch = kel::lbm::sch::ParticleGroup<sch::T,D,2u,kel::lbm::coll::Sphero using GroupView = kel::lbm::data<sch::Ptr<GroupSch>, kel::lbm::enc::Native>; auto make_group(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,2u>(r,d,{8u}); @@ -102,7 +103,8 @@ SAW_TEST("Component / ParticleIntegrate instantiates and moves the body"){ auto mass = rb.template get<"mass">().at({}).get(); rb.template get<"force">().at({{0u}}).set(mass); // unit acceleration - kel::lbm::data<sch::Vector<sch::T,D>> gravity; + // Gravity is an acceleration, and now has to say so. + kel::lbm::data<sch::LbmAcceleration<sch::Vector<sch::T,D>>> gravity; gravity.at({{1u}}).set(-0.5); lbm::component<sch::T,TestDesc,lbm::cmpt::ParticleIntegrate,lbm::enc::Native> integrate{gravity}; |
